api
Class Nes::Core::Sound::Output
- class Nes::Core::Sound::Output
Sound output context.
Constructor Summary |
Output( void* s0 = 0, uint l0 = 0, void* s1 = 0, uint l1 = 0 )
|
length
public uint length[ 2 ];
- Length in number of samples for one frame.
Assign 0 to length[1] if circular buffers aren't needed.
Length doesn't neccesarily need to be the same value for every frame as long
as they eventually add up in relation to the emulation speed. The requested
number of samples will always be written even if the length is greater
than what the sound engine normally produces. Non-written samples for one frame will
be carried over to the next through an internal buffer.
lockCallback
public static Nes::Core::Sound::Output::Locker lockCallback;
- Sound lock callback manager.
Static object used for adding the user defined callback.
samples
public void* samples[ 2 ];
- Pointer to sound memory to be written to.
Assign NULL to samples[1] if circular buffers aren't needed.
unlockCallback
public static Nes::Core::Sound::Output::Unlocker unlockCallback;
- Sound unlock callback manager.
Static object used for adding the user defined callback.
Output
public Output( void* s0 = 0, uint l0 = 0, void* s1 = 0, uint l1 = 0 );