Skip to content

Commit 564c36b

Browse files
committed
remove some compile warnings
1 parent 4dcb00c commit 564c36b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/AudioA2DP.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class ChannelConverter {
5050
NBuffer<uint8_t> a2dp_buffer(A2DP_BUFFER_SIZE, A2DP_BUFFER_COUNT);
5151
// flag to indicated that we are ready to process data
5252
volatile bool is_a2dp_active = false;
53+
// Volume control
5354
SimulatedAudioPot a2dp_volume_control;
55+
// actul volume factor
5456
float a2dp_volume=1.0;
5557

5658
// callback used by A2DP to provide the a2dp_source sound data

src/AudioTools/AudioOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ class FormatConverterStream : public AudioPrint {
614614
if (no_conversion){
615615
result = p_out->write(data, len);
616616
} 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;
618618
convert.target_bits_per_sample = p_info_out->bits_per_sample;
619619
switch(p_info_in->bits_per_sample) {
620620
case 8:

src/AudioTools/Vector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ class Vector {
260260
T *data = nullptr;
261261

262262
inline void resize_internal(int newSize, bool copy, bool shrink=false) {
263-
bool withNewSize = false;
263+
//bool withNewSize = false;
264264
if (newSize>bufferLen || this->data==nullptr ||shrink){
265-
withNewSize = true;
265+
//withNewSize = true;
266266
T* oldData = data;
267267
int oldBufferLen = this->bufferLen;
268268
this->data = new T[newSize+1];

0 commit comments

Comments
 (0)