This commit is contained in:
Stephen Anthony 2018-08-24 10:12:34 -02:30
parent 7bc320964e
commit 2db48ae38b
3 changed files with 15 additions and 5 deletions

View File

@ -23,6 +23,9 @@
* Full rewrite of the audio subsystem; resample TIA output to target sample * Full rewrite of the audio subsystem; resample TIA output to target sample
rate directly in Stella. rate directly in Stella.
* Added option to force stereo sound for all ROMs, or to use the setting
on a per-ROM basis.
* Threading: decouple emulation from frame rendering. * Threading: decouple emulation from frame rendering.
* Main loop rewritten; emulating speed and timing is now much more faithful * Main loop rewritten; emulating speed and timing is now much more faithful
@ -69,17 +72,17 @@
* Updated PAL palette. * Updated PAL palette.
* Updated included PNG library to latest stable version.
* For UNIX systems: in the ROM launcher, when using symlinks use the * For UNIX systems: in the ROM launcher, when using symlinks use the
symlink pathname instead of the underlying filesystem pathname. symlink pathname instead of the underlying filesystem pathname.
* The Linux builds now use the system-installed PNG and ZLIB libraries * The UNIX builds now use the system-installed PNG and ZLIB libraries
by default. by default.
* For better compatibility, the Windows 32-bit version does not require SSE2 * For better compatibility, the Windows 32-bit version does not require SSE2
anymore. anymore.
* Updated included PNG library to latest stable version.
-Have fun! -Have fun!

View File

@ -56,7 +56,7 @@ class AudioSettings
static constexpr uInt32 DEFAULT_BUFFER_SIZE = 3; static constexpr uInt32 DEFAULT_BUFFER_SIZE = 3;
static constexpr uInt32 DEFAULT_HEADROOM = 2; static constexpr uInt32 DEFAULT_HEADROOM = 2;
static constexpr ResamplingQuality DEFAULT_RESAMPLING_QUALITY = ResamplingQuality::lanczos_2; static constexpr ResamplingQuality DEFAULT_RESAMPLING_QUALITY = ResamplingQuality::lanczos_2;
static constexpr const char* DEFAULT_STEREO = "BYROM"; static constexpr const char* DEFAULT_STEREO = "byrom";
static constexpr uInt32 DEFAULT_VOLUME = 80; static constexpr uInt32 DEFAULT_VOLUME = 80;
static constexpr bool DEFAULT_ENABLED = true; static constexpr bool DEFAULT_ENABLED = true;

View File

@ -753,10 +753,17 @@ void Console::setTIAProperties()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Console::createAudioQueue() void Console::createAudioQueue()
{ {
const string& stereo = myOSystem.settings().getString(AudioSettings::SETTING_STEREO);
bool useStereo = false;
if(BSPF::equalsIgnoreCase(stereo, "byrom"))
useStereo = myProperties.get(Cartridge_Sound) == "STEREO";
else
useStereo = BSPF::equalsIgnoreCase(stereo, "stereo");
myAudioQueue = make_shared<AudioQueue>( myAudioQueue = make_shared<AudioQueue>(
myEmulationTiming.audioFragmentSize(), myEmulationTiming.audioFragmentSize(),
myEmulationTiming.audioQueueCapacity(), myEmulationTiming.audioQueueCapacity(),
myProperties.get(Cartridge_Sound) == "STEREO" useStereo
); );
} }