Reduce audio buffer from 4 Kb to 1/4 Kb
This commit is contained in:
parent
72921c06e3
commit
dd40936769
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ namespace psemek::audio
|
||||||
engine::impl::impl()
|
engine::impl::impl()
|
||||||
: sdl_init(sdl2::init(SDL_INIT_AUDIO))
|
: sdl_init(sdl2::init(SDL_INIT_AUDIO))
|
||||||
{
|
{
|
||||||
if (Mix_OpenAudio(spec.frequency, AUDIO_S16SYS, spec.channels, 4096) != 0)
|
if (Mix_OpenAudio(spec.frequency, AUDIO_S16SYS, spec.channels, 256) != 0)
|
||||||
mix_fail("Mix_OpenAudio: ");
|
mix_fail("Mix_OpenAudio: ");
|
||||||
|
|
||||||
Uint16 format;
|
Uint16 format;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue