mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Properly fix a bug with volume of output buses.
This commit is contained in:
@@ -2691,11 +2691,6 @@ static ma_result ma_node_input_bus_read_pcm_frames(ma_node* pInputNode, ma_node_
|
|||||||
if (pOutputBus == pFirst && framesProcessed < frameCount) {
|
if (pOutputBus == pFirst && framesProcessed < frameCount) {
|
||||||
ma_silence_pcm_frames(ma_offset_pcm_frames_ptr(pFramesOut, framesProcessed, ma_format_f32, inputChannels), (frameCount - framesProcessed), ma_format_f32, inputChannels);
|
ma_silence_pcm_frames(ma_offset_pcm_frames_ptr(pFramesOut, framesProcessed, ma_format_f32, inputChannels), (frameCount - framesProcessed), ma_format_f32, inputChannels);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Apply volume, if necessary. */
|
|
||||||
if (volume != 1) {
|
|
||||||
ma_apply_volume_factor_f32(pFramesOut, framesProcessed * inputChannels, volume);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
/* Seek. */
|
/* Seek. */
|
||||||
ma_node_read_pcm_frames(pOutputBus->pNode, pOutputBus->outputBusIndex, NULL, frameCount, &framesProcessed, globalTime);
|
ma_node_read_pcm_frames(pOutputBus->pNode, pOutputBus->outputBusIndex, NULL, frameCount, &framesProcessed, globalTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user