Mercurial > hg > xmms-sid
comparison src/xs_sidplay2.cc @ 101:4614f58ab169 dev-0_8_0b6
Paskaa
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 11 Jan 2004 01:25:01 +0000 |
parents | 63cf9b2ddadf |
children | fe83646e6baa |
comparison
equal
deleted
inserted
replaced
100:426e443240b8 | 101:4614f58ab169 |
---|---|
208 t_xs_sidplay2 *myPlayer = (t_xs_sidplay2 *) myStatus->player; | 208 t_xs_sidplay2 *myPlayer = (t_xs_sidplay2 *) myStatus->player; |
209 assert(myStatus); | 209 assert(myStatus); |
210 | 210 |
211 /* Try to get the tune */ | 211 /* Try to get the tune */ |
212 if (!pcFilename) return FALSE; | 212 if (!pcFilename) return FALSE; |
213 XSDEBUG("paski #1\n"); | |
214 if (!myPlayer->currTune->load(pcFilename)) return FALSE; | 213 if (!myPlayer->currTune->load(pcFilename)) return FALSE; |
215 XSDEBUG("paski #2\n"); | |
216 | 214 |
217 /* Get current configuration */ | 215 /* Get current configuration */ |
218 myPlayer->currConfig = myPlayer->currEng->config(); | 216 myPlayer->currConfig = myPlayer->currEng->config(); |
219 | 217 |
220 /* Configure channels and stuff */ | 218 /* Configure channels and stuff */ |
290 #else | 288 #else |
291 myPlayer->currConfig.sampleFormat = SID2_LITTLE_SIGNED; | 289 myPlayer->currConfig.sampleFormat = SID2_LITTLE_SIGNED; |
292 #endif | 290 #endif |
293 #endif | 291 #endif |
294 | 292 |
295 XSDEBUG("paski #3\n"); | |
296 | 293 |
297 /* Now set the emulator configuration */ | 294 /* Now set the emulator configuration */ |
298 if (myPlayer->currEng->config(myPlayer->currConfig) < 0) | 295 if (myPlayer->currEng->config(myPlayer->currConfig) < 0) |
299 { | 296 { |
300 XSERR("Emulator engine configuration failed!\n"); | 297 XSERR("Emulator engine configuration failed!\n"); |
301 return FALSE; | 298 return FALSE; |
302 } | 299 } |
303 | |
304 XSDEBUG("paski #4\n"); | |
305 | 300 |
306 return TRUE; | 301 return TRUE; |
307 } | 302 } |
308 | 303 |
309 | 304 |