diff options
author | waker <wakeroid@gmail.com> | 2009-07-03 21:48:16 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-07-03 21:48:16 +0200 |
commit | 5444dba34faa75c0a0219e292df25ccad51f2d4a (patch) | |
tree | 971a19cfd5c3291faab7b713910886690424f56c /psdl.c | |
parent | ea3c1d9b0351effebcae6925650a0d5060103901 (diff) |
playlist now correctly ignores unknown file types
Diffstat (limited to 'psdl.c')
-rw-r--r-- | psdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ #include "codec.h" #include "playlist.h" -static int sdl_player_numsamples; +static int sdl_player_numsamples = 2<<16; static int sdl_player_freq; static float *sdl_buffer[2]; static SDL_AudioSpec spec; @@ -27,7 +27,7 @@ psdl_init (void) { spec.freq = freqs[frq]; spec.format = formats[fmt]; spec.channels = 2; - spec.samples = freqs[fmt]; + spec.samples = sdl_player_numsamples; spec.callback = psdl_callback; if (SDL_OpenAudio(&spec, &obt) < 0) { fprintf(stderr, "SDL: couldn't open audio: %s\n", SDL_GetError()); |