Create OpenAL context without attributes
This commit is contained in:
parent
f1cf6b4896
commit
d86b4659d6
|
@ -155,12 +155,7 @@ bool CreatePlaybackDevice() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALCint attributes[] = {
|
AudioContext = alcCreateContext(AudioDevice, nullptr);
|
||||||
ALC_STEREO_SOURCES, 128,
|
|
||||||
ALC_FREQUENCY, Media::Player::kDefaultFrequency,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
AudioContext = alcCreateContext(AudioDevice, attributes);
|
|
||||||
alcMakeContextCurrent(AudioContext);
|
alcMakeContextCurrent(AudioContext);
|
||||||
if (ContextErrorHappened()) {
|
if (ContextErrorHappened()) {
|
||||||
DestroyPlaybackDevice();
|
DestroyPlaybackDevice();
|
||||||
|
|
Loading…
Reference in New Issue