/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
@Callback private static void cbProcess(MTAudioProcessingTap tap, @MachineSizedSInt long numberFrames, MTAudioProcessingTapMutableFlags flags, AudioBufferList bufferListInOut, MachineSizedSIntPtr numberFramesOut, MTAudioProcessingTapFlags.MTAudioProcessingTapFlagsPtr flagsOut) { Callbacks cb = null; synchronized (callbacks) { cb = callbacks.get(tap.getStorage()); } long frames = cb.process(tap, numberFrames, flags, bufferListInOut); numberFramesOut.set(frames); flagsOut.set(flags.get()); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} longs from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. * Does the proper narrowing {@code long} to {@code int} conversion if running on * a 32-bit platform. * * @param src the source. */ public void set(long[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
/** * Copies {@code src.length} ints from {@code src} to the memory pointed * to by this {@link MachineSizedSIntPtr}. Does signed * {@code int} to {@code long} conversion if running on a 64-bit platform. * * @param src the source. */ public void set(int[] src) { set(src, 0, src.length); }
@Callback private static void cbProcess(MTAudioProcessingTap tap, @MachineSizedSInt long numberFrames, MTAudioProcessingTapMutableFlags flags, AudioBufferList bufferListInOut, MachineSizedSIntPtr numberFramesOut, MTAudioProcessingTapFlags.MTAudioProcessingTapFlagsPtr flagsOut) { Callbacks cb = null; synchronized (callbacks) { cb = callbacks.get(tap.getStorage()); } long frames = cb.process(tap, numberFrames, flags, bufferListInOut); numberFramesOut.set(frames); flagsOut.set(flags.get()); }
@Callback private static void cbProcess(MTAudioProcessingTap tap, @MachineSizedSInt long numberFrames, MTAudioProcessingTapMutableFlags flags, AudioBufferList bufferListInOut, MachineSizedSIntPtr numberFramesOut, MTAudioProcessingTapFlags.MTAudioProcessingTapFlagsPtr flagsOut) { Callbacks cb = null; synchronized (callbacks) { cb = callbacks.get(tap.getStorage()); } long frames = cb.process(tap, numberFrames, flags, bufferListInOut); numberFramesOut.set(frames); flagsOut.set(flags.get()); }