mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
no call to BT in decoder init when BT is compiled out
This commit is contained in:
@@ -81,12 +81,14 @@ void output_init_embedded(log_level level, char *device, unsigned output_buf_siz
|
|||||||
output.start_frames = FRAME_BLOCK;
|
output.start_frames = FRAME_BLOCK;
|
||||||
output.rate_delay = rate_delay;
|
output.rate_delay = rate_delay;
|
||||||
|
|
||||||
|
#if CONFIG_BT_SINK
|
||||||
if (strcasestr(device, "BT ") || !strcasecmp(device, "BT")) {
|
if (strcasestr(device, "BT ") || !strcasecmp(device, "BT")) {
|
||||||
LOG_INFO("init Bluetooth");
|
LOG_INFO("init Bluetooth");
|
||||||
close_cb = &output_close_bt;
|
close_cb = &output_close_bt;
|
||||||
output_init_bt(level, device, output_buf_size, params, rates, rate_delay, idle);
|
output_init_bt(level, device, output_buf_size, params, rates, rate_delay, idle);
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
LOG_INFO("init I2S/SPDIF");
|
LOG_INFO("init I2S/SPDIF");
|
||||||
close_cb = &output_close_i2s;
|
close_cb = &output_close_i2s;
|
||||||
volume_cb = &output_volume_i2s;
|
volume_cb = &output_volume_i2s;
|
||||||
|
|||||||
Reference in New Issue
Block a user