Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 15, 2024
2 parents 794d459 + 92a3d8b commit 0a68f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BluetoothA2DPOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void BluetoothA2DPOutputAudioTools::set_sample_rate(int m_sample_rate) {
#if A2DP_I2S_AUDIOTOOLS
ESP_LOGI(BT_AV_TAG, "%s %d", __func__, m_sample_rate);
if (p_audio_print != nullptr) {
AudioInfo info = p_audio_print->audioInfo();
audio_tools::AudioInfo info = p_audio_print->audioInfo();
if (info.sample_rate != m_sample_rate || info.channels != 2 ||
info.bits_per_sample != 16) {
info.sample_rate = m_sample_rate;
Expand Down
2 changes: 1 addition & 1 deletion src/BluetoothA2DPOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BluetoothA2DPOutputAudioTools : public BluetoothA2DPOutput {

/// Output AudioStream using AudioTools library
void set_output(audio_tools::AudioStream &output) {
static AdapterAudioStreamToAudioOutput adapter(output);
static audio_tools::AdapterAudioStreamToAudioOutput adapter(output);
adapter.setStream(output);
p_print = &output;
p_audio_print = &adapter;
Expand Down

0 comments on commit 0a68f86

Please sign in to comment.