Mercurial > hg > xmms-sid
comparison src/xs_sidplay2.cc @ 779:8fb51f9ef44e
Fix some HardSID builder related things.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Nov 2012 13:01:39 +0200 |
parents | bb7b3ded919a |
children | 0995fa233462 |
comparison
equal
deleted
inserted
replaced
778:54a7afbf251e | 779:8fb51f9ef44e |
---|---|
523 | 523 |
524 /* Hardware backend flushing | 524 /* Hardware backend flushing |
525 */ | 525 */ |
526 void xs_sidplay2_flush(XSEngineState * state) | 526 void xs_sidplay2_flush(XSEngineState * state) |
527 { | 527 { |
528 (void) state; | 528 XSSIDPlay2 *engine = (XSSIDPlay2 *) state->internal; |
529 | 529 |
530 #ifdef HAVE_HARDSID_BUILDER | 530 #ifdef HAVE_HARDSID_BUILDER |
531 if (xs_cfg.sid2Builder == XS_BLD_HARDSID) | 531 if (xs_cfg.sid2Builder == XS_BLD_HARDSID) |
532 { | 532 { |
533 #ifdef HSID_SID2_COM | 533 #ifdef HSID_SID2_COM |
534 IfPtr<HardSIDBuilder> hs(state->config.sidEmulation); | 534 IfPtr<HardSIDBuilder> hs(engine->config.sidEmulation); |
535 if (hs) | 535 if (hs) |
536 hs->flush(); | 536 hs->flush(); |
537 #else | 537 #else |
538 ((HardSIDBuilder *) state->config.sidEmulation)->flush(); | 538 ((HardSIDBuilder *) engine->config.sidEmulation)->flush(); |
539 #endif | 539 #endif |
540 } | 540 } |
541 #endif | 541 #endif |
542 } | 542 } |
543 | 543 |