diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-05 23:23:44 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-05 23:23:44 +0200 |
commit | 337d90098cf48c6e3600f321081492e33cc48229 (patch) | |
tree | ef0d26f051f02cfcf1b96a10fffbd92976c52990 /cdumb.c | |
parent | 8f749dbc5721172d1e5cf9742955fb429fa0062a (diff) |
alsa playback WIP
Diffstat (limited to 'cdumb.c')
-rw-r--r-- | cdumb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,8 +5,8 @@ #include "codec.h" #include "cdumb.h" #include "playlist.h" +#include "playback.h" -extern int sdl_player_freq; // hack! static int dumb_initialized; static DUH *duh; static DUH_SIGRENDERER *renderer; @@ -75,7 +75,7 @@ cdumb_init (const char *fname, int track, float start, float end) { cdumb.info.bitsPerSample = 16; cdumb.info.channels = 2; - cdumb.info.samplesPerSecond = sdl_player_freq; + cdumb.info.samplesPerSecond = p_get_rate (); cdumb.info.position = 0; cdumb.info.duration = duh_get_length (duh)/65536.0f; printf ("duration: %f\n", cdumb.info.duration); |