[streaming/xcode] configurable MP3 streaming bitrate

This commit is contained in:
whatdoineed2do/Ray
2019-08-23 16:22:11 +01:00
committed by ejurgensen
parent cae790ed7e
commit 554799ebc3
10 changed files with 61 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ static int alsa_latency_history_size;
// We will try to play the music with the source quality, but if the card
// doesn't support that we resample to the fallback quality
static struct media_quality alsa_fallback_quality = { 44100, 16, 2 };
static struct media_quality alsa_fallback_quality = { 44100, 16, 2, 0 };
static struct media_quality alsa_last_quality;

View File

@@ -446,7 +446,7 @@ static struct cast_session *cast_sessions;
static struct cast_master_session *cast_master_session;
//static struct timeval heartbeat_timeout = { HEARTBEAT_TIMEOUT, 0 };
static struct timeval reply_timeout = { REPLY_TIMEOUT, 0 };
static struct media_quality cast_quality_default = { CAST_QUALITY_SAMPLE_RATE_DEFAULT, CAST_QUALITY_BITS_PER_SAMPLE_DEFAULT, CAST_QUALITY_CHANNELS_DEFAULT };
static struct media_quality cast_quality_default = { CAST_QUALITY_SAMPLE_RATE_DEFAULT, CAST_QUALITY_BITS_PER_SAMPLE_DEFAULT, CAST_QUALITY_CHANNELS_DEFAULT, 0 };
/* ------------------------------- MISC HELPERS ----------------------------- */

View File

@@ -61,7 +61,7 @@ struct fifo_buffer
static struct fifo_buffer buffer;
static struct media_quality fifo_quality = { 44100, 16, 2 };
static struct media_quality fifo_quality = { 44100, 16, 2, 0 };
static void

View File

@@ -86,7 +86,7 @@ static struct pulse_session *sessions;
static uint32_t pulse_known_devices[PULSE_MAX_DEVICES];
static struct media_quality pulse_last_quality;
static struct media_quality pulse_fallback_quality = { 44100, 16, 2 };
static struct media_quality pulse_fallback_quality = { 44100, 16, 2, 0 };
// Converts from 0 - 100 to Pulseaudio's scale
static inline pa_volume_t