Mercurial > hg > xmms-sid
diff src/xs_sidplay2.cc @ 526:fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 Feb 2007 16:53:05 +0000 |
parents | 3fdc7238f208 |
children | fe8b41abd923 |
line wrap: on
line diff
--- a/src/xs_sidplay2.cc Sat Feb 17 16:35:01 2007 +0000 +++ b/src/xs_sidplay2.cc Tue Feb 20 16:53:05 2007 +0000 @@ -62,7 +62,7 @@ /* Check if we can play the given file */ -gboolean xs_sidplay2_isourfile(t_xs_file *f) +gboolean xs_sidplay2_probe(t_xs_file *f) { gchar tmpBuf[4]; @@ -311,6 +311,7 @@ else myEngine->currConfig.sidModel = SID2_MODEL_CORRECT; + /* XXX: Should this be configurable? libSIDPlay1 does not support it, though */ myEngine->currConfig.sidSamples = TRUE; @@ -432,7 +433,28 @@ { assert(myStatus); - /* With the current scheme of handling sidtune-loading, we don't do anything here. */ + /* With the current scheme of handling sidtune-loading, + * we don't do anything here. + */ +} + + +/* Hardware backend flushing + */ +void xs_sidplay2_flush(t_xs_status * myStatus) +{ + assert(myStatus); + +#ifdef HAVE_HARDSID_BUILDER +#ifdef HSID_SID2_COM + IfPtr<HardSIDBuilder> hs(myStatus->currBuilder); + if (hs) + hs->flush(); +#else + if (xs_cfg.sid2Builder == XS_BLD_HARDSID) + ((HardSIDBuilder *) myStatus->currBuilder)->flush(); +#endif +#endif }