typedefmal_uint32(*mal_src_read_proc)(mal_src*pSRC,mal_uint32frameCount,void*pFramesOut,void*pUserData);// Returns the number of frames that were read.
...
...
@@ -758,12 +786,13 @@ struct mal_dsp
mal_dsp_configconfig;
mal_dsp_read_proconRead;
void*pUserDataForOnRead;
mal_srcsrc;// For sample rate conversion.
mal_format_converterformatConverter;
mal_srcsrc;// For sample rate conversion.
mal_channelchannelMapInPostMix[MAL_MAX_CHANNELS];// <-- When mixing, new channels may need to be created. This represents the channel map after mixing.
mal_channelchannelShuffleTable[MAL_MAX_CHANNELS];
mal_bool32isChannelMappingRequired:1;
mal_bool32isSRCRequired:1;
mal_bool32isPassthrough:1;// <-- Will be set to true when the DSP pipeline is an optimized passthrough.
mal_bool32isPassthrough:1;// <-- Will be set to true when the DSP pipeline is an optimized passthrough.