Skip to content

Commit 8b52c53

Browse files
committed
rename writeSilence to write_silence()
1 parent ecd8abe commit 8b52c53

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/BluetoothA2DPOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BluetoothA2DPOutput {
2727
virtual void set_sample_rate(int rate) = 0;
2828
virtual void set_output_active(bool active) = 0;
2929

30-
virtual void writeSilence(size_t len) {
30+
virtual void write_silence(size_t len) {
3131
uint8_t silence[64] = {};
3232
for (size_t i = 0; i < len; i += sizeof(silence))
3333
write(silence, std::min(sizeof(silence), len - i));

src/BluetoothA2DPSink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ void BluetoothA2DPSink::handle_audio_state(uint16_t event, void *p_param) {
654654
} else if (ESP_A2D_AUDIO_STATE_SUSPEND == a2d->audio_stat.state) {
655655
// flush silence through DMA before deactivating to avoid a noise pop
656656
if (is_output && is_i2s_active)
657-
out->writeSilence(2 * 1024);
657+
out->write_silence(2 * 1024);
658658
// deactivate only when is_output_active_by_state is true
659659
if (is_output_active_by_state) set_i2s_active(false);
660660
}

0 commit comments

Comments
 (0)