mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 06:37:24 +02:00
Create OpenAL context without attributes
This commit is contained in:
parent
f1cf6b4896
commit
d86b4659d6
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue