Skip to content

Commit b9602bc

Browse files
committed
opus test compile error
1 parent 95c6b91 commit b9602bc

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

tests/codec/mp3-mad/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ cmake_minimum_required(VERSION 3.20)
44
project(mp3-mad)
55
set (CMAKE_CXX_STANDARD 11)
66
set (DCMAKE_CXX_FLAGS "-Werror")
7-
#if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
8-
# set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
9-
# set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
10-
#endif()
117

128
include(FetchContent)
139

@@ -33,5 +29,5 @@ target_compile_definitions(mp3-mad PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_MAD -DU
3329
# specify libraries
3430
target_link_libraries(mp3-mad portaudio arduino_emulator arduino_libmad arduino-audio-tools )
3531
# ESP32: CONFIG_ARDUINO_LOOP_STACK_SIZE 8192 -> so we test it with this setting "-Wl,-z,stack-size=8192"
36-
add_link_options("-z,stack-size=8192")
32+
#add_link_options("-z,stack-size=8192")
3733

tests/codec/opus/opus.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ void setup() {
2828
AudioLogger::instance().begin(Serial, AudioLogger::Debug);
2929

3030
// start I2S
31-
Serial.println("starting I2S...");
32-
auto cfgi = out.defaultConfig(TX_MODE);
33-
cfgi.sample_rate = sample_rate;
34-
cfgi.channels = channels;
35-
cfgi.bits_per_sample = 16;
36-
out.begin(cfgi);
31+
// Serial.println("starting I2S...");
32+
// auto cfgi = out.defaultConfig(TX_MODE);
33+
// cfgi.sample_rate = sample_rate;
34+
// cfgi.channels = channels;
35+
// cfgi.bits_per_sample = 16;
36+
// out.begin(cfgi);
3737

3838
// Setup sine wave
3939
auto cfgs = sineWave.defaultConfig();

0 commit comments

Comments
 (0)