mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix bug: alloca wrong size for audio buffer.
This commit is contained in:
parent
e30e1e5aad
commit
93ddd26a4a
@ -1,6 +1,7 @@
|
|||||||
User johns
|
User johns
|
||||||
Date:
|
Date:
|
||||||
|
|
||||||
|
Fix bug: alloca wrong size for audio buffer.
|
||||||
Handle jump in stream like stream start.
|
Handle jump in stream like stream start.
|
||||||
Always compile audio drift correction.
|
Always compile audio drift correction.
|
||||||
Add audio drift correction configuration to the setup.
|
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 =
|
frames =
|
||||||
count / (AudioRing[AudioRingWrite].InChannels * AudioBytesProSample);
|
count / (AudioRing[AudioRingWrite].InChannels * AudioBytesProSample);
|
||||||
buffer =
|
buffer =
|
||||||
alloca(frames * AudioRing[AudioRingWrite].InChannels *
|
alloca(frames * AudioRing[AudioRingWrite].HwChannels *
|
||||||
AudioBytesProSample);
|
AudioBytesProSample);
|
||||||
AudioResample(samples, AudioRing[AudioRingWrite].InChannels, frames,
|
AudioResample(samples, AudioRing[AudioRingWrite].InChannels, frames,
|
||||||
buffer, AudioRing[AudioRingWrite].HwChannels);
|
buffer, AudioRing[AudioRingWrite].HwChannels);
|
||||||
|
Loading…
Reference in New Issue
Block a user