Skip to content

Commit

Permalink
A2DPStream setSilenceOnNoData
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 24, 2024
1 parent 91fdc4c commit 96fa64e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AudioTools/AudioLibs/A2DPStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ class A2DPStream : public AudioStream, public VolumeSupport {
return a2dp_buffer;
}

/// Manage config.silence_on_nodata dynamically.
void setSilenceOnNoData(bool silence){
config.silence_on_nodata = silence;
}

protected:
A2DPConfig config;
BluetoothA2DPSource *a2dp_source = nullptr;
Expand Down

0 comments on commit 96fa64e

Please sign in to comment.