Skip to content

Commit

Permalink
SDL audio: Let's try 256 for fmt.samples. See issue #12705
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 17, 2023
1 parent 40abcdb commit ece6edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Qt/QtMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void InitSDLAudioDevice() {
fmt.freq = 44100;
fmt.format = AUDIO_S16;
fmt.channels = 2;
fmt.samples = 1024;
fmt.samples = 256;
fmt.callback = &mixaudio;
fmt.userdata = nullptr;

Expand Down
2 changes: 1 addition & 1 deletion SDL/SDLMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static void InitSDLAudioDevice(const std::string &name = "") {
fmt.freq = 44100;
fmt.format = AUDIO_S16;
fmt.channels = 2;
fmt.samples = 1024;
fmt.samples = 256;
fmt.callback = &sdl_mixaudio_callback;
fmt.userdata = nullptr;

Expand Down

0 comments on commit ece6edf

Please sign in to comment.