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> {
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 }
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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 ;
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
2727add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /opusogg ${CMAKE_CURRENT_BINARY_DIR} /opusogg)
2828add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /container-avi ${CMAKE_CURRENT_BINARY_DIR} /container-avi)
2929add_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
You can’t perform that action at this time.
0 commit comments