Unverified Commit 0183553d authored by Thomas Conté's avatar Thomas Conté Committed by GitHub
Browse files

Merge pull request #107 from wermipls/master

Fix AY stereo separation settings. The default ("none") will now output mono sound by default, and the other values ("abc", "acb") will change the way channels are mixed, as they should.
parents 3f2c831c 4b509291
Pipeline #32279 passed with stages
in 2 minutes and 40 seconds
......@@ -313,7 +313,8 @@ sound_init( const char *device )
sound_enabled = sound_enabled_ever = 1;
sound_channels = ( sound_stereo_ay != SOUND_STEREO_AY_NONE ? 2 : 1 );
/* retroarch expects 2 channels regardless of whether the audio is mono or not */
sound_channels = 2;
/* Adjust relative processor speed to deal with adjusting sound generation
frequency against emulation speed (more flexible than adjusting generated
......@@ -710,7 +711,13 @@ sound_frame( void )
blip_buffer_read_samples( right_buf, samples + 1, count, 1 );
count <<= 1;
} else {
count = blip_buffer_read_samples( left_buf, samples, sound_framesiz, BLIP_BUFFER_DEF_STEREO );
long i;
count = blip_buffer_read_samples( left_buf, samples, sound_framesiz, 1 );
for (i = 0; i < count; ++i)
{
samples[i*2+1] = samples[i*2];
}
count <<= 1;
}
if( settings_current.sound )
......
......@@ -7,7 +7,6 @@ int sound_lowlevel_init(const char *device, int *freqptr, int *stereoptr)
{
(void)device;
*freqptr = 44100;
*stereoptr = 1;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment