typedef mal_uint32 (* mal_src_read_proc)(mal_src* pSRC, mal_uint32 frameCount, void* pFramesOut, void* pUserData); // Returns the number of frames that were read.
typedef mal_uint32 (* mal_src_read_proc)(mal_src* pSRC, mal_uint32 frameCount, void* pFramesOut, void* pUserData); // Returns the number of frames that were read.
...
@@ -758,12 +786,13 @@ struct mal_dsp
...
@@ -758,12 +786,13 @@ struct mal_dsp
mal_dsp_config config;
mal_dsp_config config;
mal_dsp_read_proc onRead;
mal_dsp_read_proc onRead;
void* pUserDataForOnRead;
void* pUserDataForOnRead;
mal_src src; // For sample rate conversion.
mal_format_converter formatConverter;
mal_src src; // For sample rate conversion.
mal_channel channelMapInPostMix[MAL_MAX_CHANNELS]; // <-- When mixing, new channels may need to be created. This represents the channel map after mixing.
mal_channel channelMapInPostMix[MAL_MAX_CHANNELS]; // <-- When mixing, new channels may need to be created. This represents the channel map after mixing.