Skip to content

Commit

Permalink
Make sure inputSamples aligns to the channel count
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jan 25, 2019
1 parent 8ecb4ed commit 83f8734
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,9 @@ uint32_t FAudio_CreateSubmixVoice(
/* Sample Storage */
(*ppSubmixVoice)->mix.inputSamples = (uint32_t) FAudio_ceil(
audio->updateSize *
InputChannels *
(double) InputSampleRate /
(double) audio->master->master.inputSampleRate
);
) * InputChannels;
(*ppSubmixVoice)->mix.inputCache = (float*) audio->pMalloc(
sizeof(float) * (*ppSubmixVoice)->mix.inputSamples
);
Expand Down

0 comments on commit 83f8734

Please sign in to comment.