File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ class SingleBuffer : public BaseBuffer<T> {
259
259
// / Moves the unprocessed data to the beginning of the buffer
260
260
void trim () {
261
261
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));
263
263
current_write_pos = av;
264
264
current_read_pos = 0 ;
265
265
}
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ class FrequencyDetectorAutoCorrelation : public AudioStream {
225
225
size_t max_lag = sample_rate / 50 ;
226
226
if (max_lag >= buffer_size) max_lag = buffer_size - 1 ;
227
227
228
- LOGD (" lag min/max: %u / %u" , min_lag, max_lag);
228
+ LOGD (" lag min/max: %u / %u" , ( unsigned ) min_lag, ( unsigned ) max_lag);
229
229
230
230
float max_corr = 0 .0f ;
231
231
size_t best_lag = 0 ;
@@ -240,7 +240,7 @@ class FrequencyDetectorAutoCorrelation : public AudioStream {
240
240
}
241
241
}
242
242
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);
244
244
245
245
if (best_lag == 0 ) return 0 .0f ;
246
246
return (float )sample_rate / best_lag;
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ class HDLCStream : public Stream {
204
204
unsigned long startTime = millis ();
205
205
206
206
// process bytes from input with timeout
207
- while (result == 0 && (millis () - startTime < timeout_ms )) {
207
+ while (result == 0 && (millis () - startTime < getTimeout () )) {
208
208
// Check if data is available before blocking on read
209
209
if (p_in->available () <= 0 ) {
210
210
continue ;
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/opus ${CMAKE_CURRENT_BINARY_DIR}/op
27
27
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /opusogg ${CMAKE_CURRENT_BINARY_DIR} /opusogg )
28
28
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /container-avi ${CMAKE_CURRENT_BINARY_DIR} /container-avi )
29
29
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 )
32
33
34
+ #add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/container-avi-movie ${CMAKE_CURRENT_BINARY_DIR}/container-avi-movie)
33
35
You can’t perform that action at this time.
0 commit comments