Mercurial > hg > xmms-sid
diff src/xs_sidplay1.cpp @ 847:5b93bd8c7814
Cleanups, adjust backend configuration sequences, more error checking,
improved debug output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Nov 2012 22:44:36 +0200 |
parents | 5b3e2116408f |
children | 011ba70e271e |
line wrap: on
line diff
--- a/src/xs_sidplay1.cpp Thu Nov 08 22:43:45 2012 +0200 +++ b/src/xs_sidplay1.cpp Thu Nov 08 22:44:36 2012 +0200 @@ -86,9 +86,12 @@ XSSIDPlay1 *engine; assert(state); + XSDEBUG("SIDPlay1 backend initializing.\n"); + /* Allocate internal structures */ engine = (XSSIDPlay1 *) g_malloc0(sizeof(XSSIDPlay1)); - if (!engine) return FALSE; + if (!engine) + return FALSE; /* Initialize engine */ engine->emu = new emuEngine(); @@ -110,6 +113,8 @@ state->internal = engine; + XSDEBUG("SIDPlay1 emulation configuration\n"); + /* Get current configuration */ engine->emu->getConfig(engine->currConfig); @@ -258,6 +263,8 @@ XSSIDPlay1 *engine; assert(state); + XSDEBUG("SIDPlay1 backend shutdown.\n"); + engine = (XSSIDPlay1 *) state->internal; /* Free internals */