Audio Mono Audio to Stereo Channel Tweaks;

This commit is contained in:
lwvmobile 2023-07-29 21:48:28 -04:00
parent 23b1036c6b
commit 66e8bcd86a
1 changed files with 4 additions and 4 deletions

View File

@ -424,11 +424,11 @@ void playSynthesizedVoiceFS (dsd_opts * opts, dsd_state * state)
for (i = 0; i < 160; i++)
{
if (!encL)
stereo_samp1[i*2+0] = state->f_l[i];
stereo_samp1[i*2+0] = state->f_l[i] * 0.5f;
//test loading right side with same
if (!encL)
stereo_samp1[i*2+1] = state->f_l[i];
stereo_samp1[i*2+1] = state->f_l[i] * 0.5f;
}
@ -525,11 +525,11 @@ void playSynthesizedVoiceSS (dsd_opts * opts, dsd_state * state)
for (i = 0; i < 160; i++)
{
if (!encL)
stereo_samp1[i*2+0] = state->s_l[i];
stereo_samp1[i*2+0] = state->s_l[i] / 2;
//testing double left and right channel
if (!encL)
stereo_samp1[i*2+1] = state->s_l[i];
stereo_samp1[i*2+1] = state->s_l[i] / 2;
}