Fix some dead store warnings.

This commit is contained in:
David Reid
2020-12-03 17:44:49 +10:00
parent 8669f2001e
commit 4ebfb458c9
+1 -2
View File
@@ -3155,7 +3155,6 @@ MA_API ma_result ma_mixer_begin(ma_mixer* pMixer, ma_mixer* pParentMixer, ma_uin
if (pParentMixer != NULL) {
/* The output frame count must match the input frame count of the parent. If this cannot be accommodated we need to fail. */
frameCountOut = pParentMixer->mixingState.frameCountIn;
frameCountIn = frameCountOut;
} else {
if (pFrameCountOut == NULL) {
return MA_INVALID_ARGS; /* The desired output frame count is required for a root level mixer. */
@@ -3421,7 +3420,7 @@ static ma_result ma_mixer_mix_data_source_read(ma_mixer* pMixer, ma_data_source*
ma_uint8 preMixBuffer[MA_DATA_CONVERTER_STACK_BUFFER_SIZE];
ma_uint32 preMixBufferCap;
ma_uint64 totalFramesProcessed = 0;
void* pRunningAccumulationBuffer = pMixer->pAccumulationBuffer;
void* pRunningAccumulationBuffer;
ma_format effectFormatIn = ma_format_unknown;
ma_uint32 effectChannelsIn = 0;
ma_format preMixFormat = ma_format_unknown;