File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ class ChannelConverter {
50
50
NBuffer<uint8_t > a2dp_buffer (A2DP_BUFFER_SIZE, A2DP_BUFFER_COUNT);
51
51
// flag to indicated that we are ready to process data
52
52
volatile bool is_a2dp_active = false ;
53
+ // Volume control
53
54
SimulatedAudioPot a2dp_volume_control;
55
+ // actul volume factor
54
56
float a2dp_volume=1.0 ;
55
57
56
58
// callback used by A2DP to provide the a2dp_source sound data
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ class FormatConverterStream : public AudioPrint {
614
614
if (no_conversion){
615
615
result = p_out->write (data, len);
616
616
} else if (convert.multiply >0 ){
617
- int size = len / p_info_in->bits_per_sample / 8 ;
617
+ // int size = len / p_info_in->bits_per_sample / 8;
618
618
convert.target_bits_per_sample = p_info_out->bits_per_sample ;
619
619
switch (p_info_in->bits_per_sample ) {
620
620
case 8 :
Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ class Vector {
260
260
T *data = nullptr ;
261
261
262
262
inline void resize_internal (int newSize, bool copy, bool shrink=false ) {
263
- bool withNewSize = false ;
263
+ // bool withNewSize = false;
264
264
if (newSize>bufferLen || this ->data ==nullptr ||shrink){
265
- withNewSize = true ;
265
+ // withNewSize = true;
266
266
T* oldData = data;
267
267
int oldBufferLen = this ->bufferLen ;
268
268
this ->data = new T[newSize+1 ];
You can’t perform that action at this time.
0 commit comments