Fix bug: alloca wrong size for audio buffer.
This commit is contained in:
parent
e30e1e5aad
commit
93ddd26a4a
|
@ -1,6 +1,7 @@
|
|||
User johns
|
||||
Date:
|
||||
|
||||
Fix bug: alloca wrong size for audio buffer.
|
||||
Handle jump in stream like stream start.
|
||||
Always compile audio drift correction.
|
||||
Add audio drift correction configuration to the setup.
|
||||
|
|
2
audio.c
2
audio.c
|
@ -3561,7 +3561,7 @@ void AudioEnqueue(const void *samples, int count)
|
|||
frames =
|
||||
count / (AudioRing[AudioRingWrite].InChannels * AudioBytesProSample);
|
||||
buffer =
|
||||
alloca(frames * AudioRing[AudioRingWrite].InChannels *
|
||||
alloca(frames * AudioRing[AudioRingWrite].HwChannels *
|
||||
AudioBytesProSample);
|
||||
AudioResample(samples, AudioRing[AudioRingWrite].InChannels, frames,
|
||||
buffer, AudioRing[AudioRingWrite].HwChannels);
|
||||
|
|
Loading…
Reference in New Issue