ma_uint32sampleRate;/* The sample rate. When set to 0 will use the native channel count of the device. */
ma_uint32sampleRate;/* The sample rate. When set to 0 will use the native channel count of the device. */
ma_uint32periodSizeInFrames;/* If set to something other than 0, updates will always be exactly this size. The underlying device may be a different size, but from the perspective of the mixer that won't matter.*/
ma_uint32periodSizeInFrames;/* If set to something other than 0, updates will always be exactly this size. The underlying device may be a different size, but from the perspective of the mixer that won't matter.*/
ma_uint32periodSizeInMilliseconds;/* Used if periodSizeInFrames is unset. */
ma_uint32periodSizeInMilliseconds;/* Used if periodSizeInFrames is unset. */
ma_uint32gainSmoothTimeInFrames;/* The number of frames to interpolate the gain of spatialized sounds across. If set to 0, will use gainSmoothTimeInMilliseconds. */
ma_uint32gainSmoothTimeInMilliseconds;/* When set to 0, gainSmoothTimeInFrames will be used. If both are set to 0, a default value will be used. */
ma_device_id*pPlaybackDeviceID;/* The ID of the playback device to use with the default listener. */
ma_device_id*pPlaybackDeviceID;/* The ID of the playback device to use with the default listener. */
ma_allocation_callbacksallocationCallbacks;
ma_allocation_callbacksallocationCallbacks;
ma_bool32noAutoStart;/* When set to true, requires an explicit call to ma_engine_start(). This is false by default, meaning the engine will be started automatically in ma_engine_init(). */
ma_bool32noAutoStart;/* When set to true, requires an explicit call to ma_engine_start(). This is false by default, meaning the engine will be started automatically in ma_engine_init(). */
...
@@ -1773,6 +1775,7 @@ struct ma_engine
...
@@ -1773,6 +1775,7 @@ struct ma_engine
ma_mutexinlinedSoundLock;/* For synchronizing access so the inlined sound list. */
ma_mutexinlinedSoundLock;/* For synchronizing access so the inlined sound list. */
ma_sound_inlined*pInlinedSoundHead;/* The first inlined sound. Inlined sounds are tracked in a linked list. */
ma_sound_inlined*pInlinedSoundHead;/* The first inlined sound. Inlined sounds are tracked in a linked list. */
MA_ATOMICma_uint32inlinedSoundCount;/* The total number of allocated inlined sound objects. Used for debugging. */
MA_ATOMICma_uint32inlinedSoundCount;/* The total number of allocated inlined sound objects. Used for debugging. */
ma_uint32gainSmoothTimeInFrames;/* The number of frames to interpolate the gain of spatialized sounds across. */