mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-08 21:24:57 -05:00
[streaming/xcode] configurable MP3 streaming bitrate
This commit is contained in:
committed by
ejurgensen
parent
cae790ed7e
commit
554799ebc3
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -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 ----------------------------- */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user