Skip to content

Commit

Permalink
Examples comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 30, 2023
1 parent e6387c0 commit a2aae2d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#include "AudioTools.h"
#include "AudioCodecs/CodecMP3Helix.h"
#include "AudioLibs/AudioKit.h"
#include "AudioLibs/AudioClientRTSP.h" // install https://github.com/pschatzmann/live555
#include "AudioTools.h" // https://github.com/pschatzmann/arduino-audio-tools
#include "AudioCodecs/CodecMP3Helix.h" // https://github.com/pschatzmann/arduino-libhelix
#include "AudioLibs/AudioKit.h" // https://github.com/pschatzmann/arduino-audiokit
#include "AudioLibs/AudioClientRTSP.h" // install https://github.com/pschatzmann/arduino-live555

AudioKitStream i2s; // final output of decoded stream
EncodedAudioStream out_mp3(&i2s, new MP3DecoderHelix()); // Decoding stream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,24 @@
* @copyright Copyright (c) 2022
*/

/**
* @brief SnapClient with Opus decoder: I2S OUtput
* @author Phil Schatzmann
* @copyright GPLv3
*/

#include "AudioTools.h"
#include "SnapClient.h" // install https://github.com/pschatzmann/arduino-snapclient
#include "SnapClient.h"
#include "AudioCodecs/CodecOpus.h"

#define ARDUINO_LOOP_STACK_SIZE (10 * 1024)

OpusAudioDecoder opus;
I2SStream out;
SnapClient client(out);
SnapClient client(out, opus);

void setup() {
Serial.begin(115200);
// login to wifi
WiFi.begin(CONFIG_WIFI_SSID, CONFIG_WIFI_PASSWORD);
Serial.print("Connecting to WiFi ..");
Expand All @@ -41,5 +52,5 @@ void setup() {
}

void loop() {
delay(100);
client.doLoop();
}
2 changes: 1 addition & 1 deletion src/AudioLibs/AudioClientRTSP.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static bool rtspUseTCP = REQUEST_STREAMING_OVER_TCP;
namespace audio_tools {

/**
* @brief A simple RTSPClient using https://github.com/pschatzmann/live555
* @brief A simple RTSPClient using https://github.com/pschatzmann/arduino-live555
* @ingroup communications
* @author Phil Schatzmann
* @copyright GPLv3
Expand Down

0 comments on commit a2aae2d

Please sign in to comment.