Mercurial > hg > xmms-sid
view src/xs_slsup.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 | 55eea3fa8868 |
children | be2a8436461a |
line wrap: on
line source
#ifndef XS_SLSUP_H #define XS_SLSUP_H #include "xmms-sid.h" #include "xs_stil.h" #include "xs_length.h" #ifdef __cplusplus extern "C" { #endif gint xs_stil_init(void); void xs_stil_close(void); XSSTILNode *xs_stil_get(gchar *filename); gint xs_songlen_init(void); void xs_songlen_close(void); XSSLDBNode *xs_songlen_get(const gchar *); XSTuneInfo *xs_tuneinfo_new(const gchar * pcFilename, gint nsubTunes, gint startTune, const gchar * sidName, const gchar * sidComposer, const gchar * sidCopyright, gint loadAddr, gint initAddr, gint playAddr, gint dataFileLen, const gchar *sidFormat, gint sidModel); void xs_tuneinfo_free(XSTuneInfo *); #ifdef __cplusplus } #endif #endif /* XS_SLSUP_H */