Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: Use real channels number
Browse files Browse the repository at this point in the history
  • Loading branch information
Diadlo committed Jan 20, 2018
1 parent e3f3d5e commit e74cc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/backend/openal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ void OpenAL::doInput()
inputBuffer[i] = static_cast<int16_t>(ampPCM);
}

emit Audio::frameAvailable(inputBuffer, AUDIO_FRAME_SAMPLE_COUNT, 1, AUDIO_SAMPLE_RATE);
emit Audio::frameAvailable(inputBuffer, AUDIO_FRAME_SAMPLE_COUNT, channels, AUDIO_SAMPLE_RATE);
}

void OpenAL::doOutput()
Expand Down

0 comments on commit e74cc37

Please sign in to comment.