Mercurial > hg > xmms-sid
view src/xs_stil.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 | 693594421516 |
children |
line wrap: on
line source
#ifndef XS_STIL_H #define XS_STIL_H #include "xmms-sid.h" #ifdef __cplusplus extern "C" { #endif /* Types */ typedef struct { gchar *name, *author, *title, *info; } XSSTILSubNode; typedef struct _XSSTILNode { gchar *filename; gint nsubTunes; XSSTILSubNode **subTunes; struct _XSSTILNode *prev, *next; } XSSTILNode; typedef struct { XSSTILNode *nodes, **pindex; size_t n; } XSSTILDB; /* Functions */ gint xs_stildb_read(XSSTILDB *, gchar *); gint xs_stildb_index(XSSTILDB *); void xs_stildb_free(XSSTILDB *); XSSTILNode * xs_stildb_get_node(XSSTILDB *, gchar *); #ifdef __cplusplus } #endif #endif /* XS_STIL_H */