Skip to content

Commit 250b7aa

Browse files
committed
OpusOggEncoder example with config
1 parent d545f6f commit 250b7aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/examples-communication/http-server/streams-generator-webserver_ogg/streams-generator-webserver_ogg.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ GeneratedSoundStream<int16_t> in(sineWave); // Stream generated from sine wave
3030

3131
void setup() {
3232
Serial.begin(115200);
33-
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Info);
33+
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Warning);
34+
35+
// config codec
36+
// auto& cfgEncoder = ogg.config();
37+
// cfgEncoder.complexity = 0;
38+
// cfgEncoder.application = OPUS_APPLICATION_VOIP;
39+
// ...
3440

3541
// start server
3642
server.begin(in, info);

0 commit comments

Comments
 (0)