Skip to content

Commit 4152103

Browse files
committed
Compile warnings
1 parent 18ac765 commit 4152103

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/AudioTools/CoreAudio/Buffers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class SingleBuffer : public BaseBuffer<T> {
259259
/// Moves the unprocessed data to the beginning of the buffer
260260
void trim() {
261261
int av = available();
262-
memmove(buffer.data(), buffer.address() + current_read_pos, av * sizeof(T));
262+
memmove(buffer.data(), buffer.data() + current_read_pos, av * sizeof(T));
263263
current_write_pos = av;
264264
current_read_pos = 0;
265265
}

src/AudioTools/CoreAudio/FrequencyDetector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class FrequencyDetectorAutoCorrelation : public AudioStream {
225225
size_t max_lag = sample_rate / 50;
226226
if (max_lag >= buffer_size) max_lag = buffer_size - 1;
227227

228-
LOGD("lag min/max: %u / %u", min_lag, max_lag);
228+
LOGD("lag min/max: %u / %u", (unsigned)min_lag, (unsigned)max_lag);
229229

230230
float max_corr = 0.0f;
231231
size_t best_lag = 0;
@@ -240,7 +240,7 @@ class FrequencyDetectorAutoCorrelation : public AudioStream {
240240
}
241241
}
242242

243-
LOGD("best_lag: %u / max_corr: %f", best_lag, max_corr);
243+
LOGD("best_lag: %u / max_corr: %f", (unsigned)best_lag, max_corr);
244244

245245
if (best_lag == 0) return 0.0f;
246246
return (float)sample_rate / best_lag;

src/AudioTools/Sandbox/HDLCStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class HDLCStream : public Stream {
204204
unsigned long startTime = millis();
205205

206206
// process bytes from input with timeout
207-
while (result == 0 && (millis() - startTime < timeout_ms)) {
207+
while (result == 0 && (millis() - startTime < getTimeout())) {
208208
// Check if data is available before blocking on read
209209
if (p_in->available() <= 0) {
210210
continue;

tests-cmake/codec/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/opus ${CMAKE_CURRENT_BINARY_DIR}/op
2727
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/opusogg ${CMAKE_CURRENT_BINARY_DIR}/opusogg)
2828
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-avi ${CMAKE_CURRENT_BINARY_DIR}/container-avi)
2929
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/hls ${CMAKE_CURRENT_BINARY_DIR}/hls)
30-
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-avi-movie ${CMAKE_CURRENT_BINARY_DIR}/container-avi-movie)
31-
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-m4a ${CMAKE_CURRENT_BINARY_DIR}/container-m4a)
30+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-m4a ${CMAKE_CURRENT_BINARY_DIR}/container-m4a)
31+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/m4a-extractor ${CMAKE_CURRENT_BINARY_DIR}/m4a-extractor)
32+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/mp4-parser ${CMAKE_CURRENT_BINARY_DIR}/mp4-parser)
3233

34+
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-avi-movie ${CMAKE_CURRENT_BINARY_DIR}/container-avi-movie)
3335

0 commit comments

Comments
 (0)