Mercurial > hg > xmms-sid
comparison src/xs_sidplay1.cc @ 791:0995fa233462
Remove useless state variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Nov 2012 16:34:06 +0200 |
parents | 5eee092d1b13 |
children | b158abe91a75 |
comparison
equal
deleted
inserted
replaced
790:40eb0327c427 | 791:0995fa233462 |
---|---|
287 if (!engine->tune->getStatus()) { | 287 if (!engine->tune->getStatus()) { |
288 xs_error("[SIDPlay1] SID-tune status check failed. This should not happen, report to XMMS-SID author.\n"); | 288 xs_error("[SIDPlay1] SID-tune status check failed. This should not happen, report to XMMS-SID author.\n"); |
289 return FALSE; | 289 return FALSE; |
290 } | 290 } |
291 | 291 |
292 state->isInitialized = TRUE; | |
293 | |
294 return sidEmuInitializeSong(*engine->emu, *engine->tune, state->currSong); | 292 return sidEmuInitializeSong(*engine->emu, *engine->tune, state->currSong); |
295 } | 293 } |
296 | 294 |
297 | 295 |
298 /* Emulate and render audio data to given buffer | 296 /* Emulate and render audio data to given buffer |
315 */ | 313 */ |
316 gboolean xs_sidplay1_load(XSEngineState * state, gchar * filename) | 314 gboolean xs_sidplay1_load(XSEngineState * state, gchar * filename) |
317 { | 315 { |
318 XSSIDPlay1 *engine; | 316 XSSIDPlay1 *engine; |
319 assert(state); | 317 assert(state); |
320 state->isInitialized = FALSE; | |
321 | 318 |
322 engine = (XSSIDPlay1 *) state->internal; | 319 engine = (XSSIDPlay1 *) state->internal; |
323 if (!engine) return FALSE; | 320 if (!engine) return FALSE; |
324 | 321 |
325 /* Try to get the tune */ | 322 /* Try to get the tune */ |