We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a1a2a commit 792babfCopy full SHA for 792babf
src/AudioTools/CoreAudio/BaseConverter.h
@@ -998,6 +998,7 @@ class ChannelMixer : public BaseConverter {
998
public:
999
ChannelMixer(int channels = 2) { this->channels = channels; }
1000
size_t convert(uint8_t *data, size_t size) {
1001
+ if (channels <= 1) return size; // No mixing needed for single channel
1002
T *srcT = (T *)data;
1003
T *targetT = (T *)data;
1004
int samples = size / sizeof(T);
0 commit comments