We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a logical device with 4 channels.
SDL_AudioDeviceID device; SDL_AudioSpec devSpec;
I have stereo sound data.
void *audio; int audioLength; SDL_AudioSpec audioSpec;
I create an audio stream and bind it to my device.
SDL_AudioStream steam = SDL_CreateAudioStream(audioSpec, devSpec); SDL_BindAudioStream(device, stream);
My aim is to play the stereo sound on channels 3 and 4;
Input1 Input 2 | | | X--------------------------X | | X--------------------------X | | | Output1 Output2 Output3 Output 4
...So I set the following output channel map:
SDL_SetAudioStreamOutputChannelMap(stream, new int[]{ -1, -1, 0, 1 }, 4);
I interpret this as;
I finally put my audio onto the stream:
SDL_PutAudioStreamData(stream, audio, audioLength);
Regardless of what I seem to try, the end result always ends up being;
Input1 Input 2 | | | | | | | | | | Output1 Output2 Output3 Output 4
The text was updated successfully, but these errors were encountered:
icculus
No branches or pull requests
Situation
I have a logical device with 4 channels.
I have stereo sound data.
I create an audio stream and bind it to my device.
My aim is to play the stereo sound on channels 3 and 4;
...So I set the following output channel map:
I interpret this as;
I finally put my audio onto the stream:
Problem
Regardless of what I seem to try, the end result always ends up being;
The text was updated successfully, but these errors were encountered: