Class SDL_AudioStream

  • All Implemented Interfaces:
    com.sun.jna.NativeMapped

    public final class SDL_AudioStream
    extends com.sun.jna.PointerType

    SDL_AudioStream is a new audio conversion interface.

    The benefits vs SDL_AudioCVT:

    • it can handle resampling data in chunks without generating artifacts, when it doesn't have the complete buffer available.
    • it can handle incoming data in any variable size.
    • You push data as you have it, and pull it when you need it

    This is opaque to the outside world.

    • Constructor Summary

      Constructors 
      Constructor Description
      SDL_AudioStream()
      The default constructor wraps a NULL pointer.
      SDL_AudioStream​(com.sun.jna.Pointer p)
      This constructor is typically used by PointerType.fromNative(java.lang.Object, com.sun.jna.FromNativeContext) if generating a new object instance.
    • Constructor Detail

      • SDL_AudioStream

        public SDL_AudioStream()
        The default constructor wraps a NULL pointer.
      • SDL_AudioStream

        public SDL_AudioStream​(com.sun.jna.Pointer p)
        This constructor is typically used by PointerType.fromNative(java.lang.Object, com.sun.jna.FromNativeContext) if generating a new object instance.
        Parameters:
        p - Native pointer to be wrapped