fixes for resampling and handling odd-number byte stream (#88)

* fixes for resampling and handling odd-number byte stream
This commit is contained in:
Dave Horton authored and GitHub committed 2024-07-19 16:45:45 -04:00
1 parent 56df923cdb
commit 3ce819b7c9
4 files changed
+207 -103

No files matched your search

+8 -1
View File
@@ -52,7 +52,14 @@ struct private_data {
int audio_paused:1;
int graceful_shutdown:1;
char initialMetadata[8192];
void *circularBuffer;
// bidirectional audio
void *streamingPlayoutBuffer;
void *streamingPreBuffer;
int streamingPreBufSize;
uint8_t set_aside_byte;
int has_set_aside_byte;
int downscale_factor;
SpeexResamplerState *bidirectional_audio_resampler;
int bidirectional_audio_enable;
int bidirectional_audio_stream;