comparison src/xs_sidplay2.cc @ 774:d09d5c852b7e

Remove ununused buffer loading code.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Nov 2012 11:56:24 +0200
parents 45108b3d88db
children 0e9f2894b0a9
comparison
equal deleted inserted replaced
773:45108b3d88db 774:d09d5c852b7e
56 SidIPtr<ISidplay2> emu; 56 SidIPtr<ISidplay2> emu;
57 #endif 57 #endif
58 sid2_config_t config; 58 sid2_config_t config;
59 SidTune *tune; 59 SidTune *tune;
60 60
61 guint8 *buf;
62 size_t bufSize;
63
64 XSSIDPlay2(void); 61 XSSIDPlay2(void);
65 virtual ~XSSIDPlay2(void) { ; } 62 virtual ~XSSIDPlay2(void) { ; }
66 }; 63 };
67 64
68 65
85 82
86 83
87 XSSIDPlay2::XSSIDPlay2(void) 84 XSSIDPlay2::XSSIDPlay2(void)
88 { 85 {
89 tune = NULL; 86 tune = NULL;
90 buf = NULL;
91 bufSize = 0;
92 } 87 }
93 88
94 89
95 /* We need to 'export' all this pseudo-C++ crap */ 90 /* We need to 'export' all this pseudo-C++ crap */
96 extern "C" { 91 extern "C" {
496 state->isInitialized = FALSE; 491 state->isInitialized = FALSE;
497 492
498 if (!engine) 493 if (!engine)
499 return FALSE; 494 return FALSE;
500 495
501 if (xs_fload_buffer(filename, &(engine->buf), &(engine->bufSize)) != 0)
502 return FALSE;
503
504 if (!(engine->tune = new SidTune(filename))) 496 if (!(engine->tune = new SidTune(filename)))
505 return FALSE; 497 return FALSE;
506 498
507 return TRUE; 499 return TRUE;
508 } 500 }
519 if (engine->tune) 511 if (engine->tune)
520 { 512 {
521 delete engine->tune; 513 delete engine->tune;
522 engine->tune = NULL; 514 engine->tune = NULL;
523 } 515 }
524
525 g_free(engine->buf);
526 engine->buf = NULL;
527 engine->bufSize = 0;
528 } 516 }
529 } 517 }
530 518
531 519
532 /* Hardware backend flushing 520 /* Hardware backend flushing