Mercurial > hg > xmms-sid
view src/xs_sidplay1.h @ 776:bb7b3ded919a
Indeed, libsidplay-fp's audio renderer expects buffer of 16-bit shorts and
number of samples as input, AND returns number of samples. Thus, we need to
divide and multiply the values accordingly. However, it also seems that some
internal buffers in resid-fp are hardcoded to certain size, and using too
big audio buffers cause overflows .. trying to compensate for that by
limiting the amount of audio rendered.
Unfortunately there are still memory corruptions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Nov 2012 11:59:24 +0200 |
parents | 762ef85ead1a |
children | b158abe91a75 |
line wrap: on
line source
#ifndef XS_SIDPLAY1_H #define XS_SIDPLAY1_H #include "xs_player.h" #include "xs_support.h" #include "xs_slsup.h" #ifdef __cplusplus extern "C" { #endif gboolean xs_sidplay1_probe(XSFile *); void xs_sidplay1_close(XSEngineState *); gboolean xs_sidplay1_init(XSEngineState *); gboolean xs_sidplay1_initsong(XSEngineState *); guint xs_sidplay1_fillbuffer(XSEngineState *, gchar *, guint); gboolean xs_sidplay1_load(XSEngineState *, gchar *); void xs_sidplay1_delete(XSEngineState *); XSTuneInfo* xs_sidplay1_getinfo(const gchar *); gboolean xs_sidplay1_updateinfo(XSEngineState *); #ifdef __cplusplus } #endif #endif /* XS_SIDPLAY1_H */