pcm_mixer: Fix an idle frame calculation bug introduced in 2e708c48c5

Resulted in playback sometimes hanging after switching tracks

Change-Id: I3d7a3c131cf547206ec536d9818c5060113f2b11
This commit is contained in:
Solomon Peachy 2020-10-23 21:58:25 -04:00
parent d78a37676e
commit ec2a34b321
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static struct mixer_channel channels[PCM_MIXER_NUM_CHANNELS] IBSS_ATTR;
static struct mixer_channel * active_channels[PCM_MIXER_NUM_CHANNELS+1] IBSS_ATTR;
/* Number of silence frames to play after all data has played */
#define MAX_IDLE_FRAMES (mixer_sampr*3 / mix_frame_size / 4)
#define MAX_IDLE_FRAMES (mixer_sampr*3 / (mix_frame_size / 4))
static unsigned int idle_counter = 0;
/** Mixing routines, CPU optmized **/