Skip to content

Commit aef06a6

Browse files
committed
AAC FAAD test
1 parent 44a1d06 commit aef06a6

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/AudioTools/AudioCodecs/CodecAACFAAD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class AACDecoderFAAD : public AudioDecoder {
5757
conf->outputFormat = FAAD_FMT_16BIT;
5858
//conf->defObjectType = LC;
5959
conf->defSampleRate = info.sample_rate;
60-
conf->downMatrix = false;
60+
conf->downMatrix = true; // 5.1 channel downmatrixed to 2 channel
6161
conf->useOldADTSFormat = false;
6262
conf->dontUpSampleImplicitSBR = false;
6363

src/AudioTools/CoreAudio/AudioHttp/URLStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class URLStream : public AbstractURLStream {
9595
int result = process<const char*>(action, url, reqMime, reqData);
9696
if (result > 0) {
9797
size = request.contentLength();
98-
LOGI("size: %d", (int)size);
98+
LOGI("contentLength: %d", (int)size);
9999
if (size >= 0 && wait_for_data) {
100100
waitForData(clientTimeout);
101101
}

tests-cmake/codec/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
1818
endif()
1919

2020

21+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/aac-faad ${CMAKE_CURRENT_BINARY_DIR}/aac-faad)
2122
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/aac-fdk ${CMAKE_CURRENT_BINARY_DIR}/aac-fdk)
2223
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/aac-fdk-encode ${CMAKE_CURRENT_BINARY_DIR}/aac-fdk-encode)
2324
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/mp3-helix ${CMAKE_CURRENT_BINARY_DIR}/mp3-helix)

tests-cmake/codec/aac-faad/aac-faad.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
using namespace audio_tools;
88

99
MemoryStream aac(gs_16b_2c_44100hz_aac, gs_16b_2c_44100hz_aac_len);
10-
PortAudioStream out; // Output of sound on desktop
11-
//CsvOutput<int16_t> out(Serial, 2);
10+
//PortAudioStream out; // Output of sound on desktop
11+
CsvOutput<int16_t> out(Serial, 2);
1212
EncodedAudioStream dec(&out, new AACDecoderFAAD()); // aac data source
1313
StreamCopy copier(dec, aac); // copy in to out
1414

0 commit comments

Comments
 (0)