Mercurial > hg > xmms-sid
comparison src/xmms-sid.cc @ 49:3518ca5c8b0f
Support for compile-time big/little-endian optimizations in audio output
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 21 Jun 2003 20:51:01 +0000 |
parents | 84214a409d19 |
children | 6a3ce7260ae1 |
comparison
equal
deleted
inserted
replaced
48:9f3b5e7a0c15 | 49:3518ca5c8b0f |
---|---|
224 pthread_mutex_lock(&xs_mutex); | 224 pthread_mutex_lock(&xs_mutex); |
225 xs_status.allowNext = FALSE; | 225 xs_status.allowNext = FALSE; |
226 pthread_mutex_unlock(&xs_mutex); | 226 pthread_mutex_unlock(&xs_mutex); |
227 | 227 |
228 | 228 |
229 | 229 /* Exit the playing thread */ |
230 XSDEBUG("exiting thread, bye.\n"); | 230 XSDEBUG("exiting thread, bye.\n"); |
231 return NULL; | 231 return NULL; |
232 } | 232 } |
233 | 233 |
234 | 234 |
333 | 333 |
334 | 334 |
335 /* Configure rest of the emulation */ | 335 /* Configure rest of the emulation */ |
336 xs_emuConf.bitsPerSample = xs_cfg.fmtBitsPerSample; | 336 xs_emuConf.bitsPerSample = xs_cfg.fmtBitsPerSample; |
337 xs_emuConf.frequency = xs_cfg.fmtFrequency; | 337 xs_emuConf.frequency = xs_cfg.fmtFrequency; |
338 #ifdef HAVE_UNSIGNEDPCM | |
339 xs_emuConf.sampleFormat = SIDEMU_UNSIGNED_PCM; | |
340 #else | |
338 xs_emuConf.sampleFormat = SIDEMU_SIGNED_PCM; | 341 xs_emuConf.sampleFormat = SIDEMU_SIGNED_PCM; |
342 #endif | |
339 xs_emuConf.mos8580 = xs_cfg.mos8580; | 343 xs_emuConf.mos8580 = xs_cfg.mos8580; |
340 xs_emuConf.emulateFilter = xs_cfg.emulateFilters; | 344 xs_emuConf.emulateFilter = xs_cfg.emulateFilters; |
341 xs_emuConf.filterFs = xs_cfg.filterFs; | 345 xs_emuConf.filterFs = xs_cfg.filterFs; |
342 xs_emuConf.filterFm = xs_cfg.filterFm; | 346 xs_emuConf.filterFm = xs_cfg.filterFm; |
343 xs_emuConf.filterFt = xs_cfg.filterFt; | 347 xs_emuConf.filterFt = xs_cfg.filterFt; |
422 xs_emuConf.clockForced = xs_cfg.forceSpeed; | 426 xs_emuConf.clockForced = xs_cfg.forceSpeed; |
423 xs_emuConf.optimisation = xs_cfg.optimiseLevel; | 427 xs_emuConf.optimisation = xs_cfg.optimiseLevel; |
424 xs_emuConf.sidModel = (xs_cfg.mos8580) ? SID2_MOS8580 : SID2_MOS6581; | 428 xs_emuConf.sidModel = (xs_cfg.mos8580) ? SID2_MOS8580 : SID2_MOS6581; |
425 xs_emuConf.sidDefault = SID2_MOS6581; | 429 xs_emuConf.sidDefault = SID2_MOS6581; |
426 xs_emuConf.sidSamples = emulation.sidSamples; | 430 xs_emuConf.sidSamples = emulation.sidSamples; |
431 | |
432 #ifdef HAVE_UNSIGNEDPCM | |
433 #ifdef WORDS_BIGENDIAN | |
434 xs_emuConf.sampleFormat = SID2_BIG_UNSIGNED; | |
435 #else | |
436 xs_emuConf.sampleFormat = SID2_LITTLE_UNSIGNED; | |
437 #endif | |
438 #else | |
439 #ifdef WORDS_BIGENDIAN | |
440 xs_emuConf.sampleFormat = SID2_BIG_SIGNED; | |
441 #else | |
442 xs_emuConf.sampleFormat = SID2_LITTLE_SIGNED; | |
443 #endif | |
444 #endif | |
427 | 445 |
428 /* Now set the emulator configuration */ | 446 /* Now set the emulator configuration */ |
429 xs_emuEngine.config(xs_emuConf); | 447 xs_emuEngine.config(xs_emuConf); |
430 #endif | 448 #endif |
431 | 449 |