Skip to content

Commit

Permalink
Merge pull request #422 from mikedickey/bugfix/coreaudio-stream-channels
Browse files Browse the repository at this point in the history
Use correct number of channels for the selected CoreAudio stream
  • Loading branch information
garyscavone authored Feb 22, 2024
2 parents 584a683 + 9929045 commit cb03db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ bool RtApiCore :: probeDeviceOpen( unsigned int deviceId, StreamMode mode, unsig
stream_.deviceFormat[mode] = RTAUDIO_FLOAT32;

if ( streamCount == 1 )
stream_.nDeviceChannels[mode] = description.mChannelsPerFrame;
stream_.nDeviceChannels[mode] = streamChannels;
else // multiple streams
stream_.nDeviceChannels[mode] = channels;
stream_.nUserChannels[mode] = channels;
Expand Down

0 comments on commit cb03db3

Please sign in to comment.