Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
fuse-libretro
Commits
4b509291
Unverified
Commit
4b509291
authored
Jun 04, 2021
by
wermi
Committed by
GitHub
Jun 04, 2021
Browse files
fix stereo separation setting
parent
3f2c831c
Changes
2
Hide whitespace changes
Inline
Side-by-side
fuse/sound.c
View file @
4b509291
...
...
@@ -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
)
...
...
src/compat/sound.c
View file @
4b509291
...
...
@@ -7,7 +7,6 @@ int sound_lowlevel_init(const char *device, int *freqptr, int *stereoptr)
{
(
void
)
device
;
*
freqptr
=
44100
;
*
stereoptr
=
1
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment