[fix](trx-client): enable audio by default
Enable audio streaming by default in AudioClientConfig so the client connects to the server audio port without requiring explicit configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -96,7 +96,7 @@ pub struct AudioClientConfig {
|
|||||||
impl Default for AudioClientConfig {
|
impl Default for AudioClientConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
enabled: false,
|
enabled: true,
|
||||||
server_port: 4533,
|
server_port: 4533,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -314,7 +314,7 @@ mod tests {
|
|||||||
assert_eq!(config.frontends.http_json.port, 0);
|
assert_eq!(config.frontends.http_json.port, 0);
|
||||||
assert!(config.remote.url.is_none());
|
assert!(config.remote.url.is_none());
|
||||||
assert_eq!(config.remote.poll_interval_ms, 750);
|
assert_eq!(config.remote.poll_interval_ms, 750);
|
||||||
assert!(!config.frontends.audio.enabled);
|
assert!(config.frontends.audio.enabled);
|
||||||
assert_eq!(config.frontends.audio.server_port, 4533);
|
assert_eq!(config.frontends.audio.server_port, 4533);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user