deviceConfig.noPreZeroedOutputBuffer=MA_TRUE;/* We'll always be outputting to every frame in the callback so there's no need for a pre-silenced buffer. */
deviceConfig.noClip=MA_TRUE;/* The mixing engine will do clipping itself. */
/* With the device initialized we need an intermediary buffer for handling fixed sized updates. Currently using a ring buffer for this, but can probably use something a bit more optimal. */
deviceConfig.noPreZeroedOutputBuffer=MA_TRUE;/* We'll always be outputting to every frame in the callback so there's no need for a pre-silenced buffer. */
deviceConfig.noClip=MA_TRUE;/* The mixing engine will do clipping itself. */
/* With the context create we can now create the default listener. After we have the listener we can set the format, channels and sample rate appropriately. */
/* With the device initialized we need an intermediary buffer for handling fixed sized updates. Currently using a ring buffer for this, but can probably use something a bit more optimal. */
returnresult;/* Failed to initialize default listener. */
gotoon_error_1;
}
/* Now that have the default listener we can ensure we have the format, channels and sample rate set to proper values to ensure future listeners are configured consistently. */