Create OpenAL context without attributes

This commit is contained in:
Ilya Fedin 2020-09-10 09:06:10 +00:00 committed by John Preston
parent f1cf6b4896
commit d86b4659d6
1 changed files with 1 additions and 6 deletions

View File

@ -155,12 +155,7 @@ bool CreatePlaybackDevice() {
return false;
}
ALCint attributes[] = {
ALC_STEREO_SOURCES, 128,
ALC_FREQUENCY, Media::Player::kDefaultFrequency,
0
};
AudioContext = alcCreateContext(AudioDevice, attributes);
AudioContext = alcCreateContext(AudioDevice, nullptr);
alcMakeContextCurrent(AudioContext);
if (ContextErrorHappened()) {
DestroyPlaybackDevice();