snapshot
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#include "AudioTools.h"
|
||||
#include "AudioTools/Communication/AudioHttp.h"
|
||||
|
||||
URLStream url("SSID","PASSWORD"); // or replace with ICYStream to get metadata
|
||||
MeasuringStream out(50, &Serial); // final output of decoded stream
|
||||
StreamCopy copier(out, url); // copy url to decoder
|
||||
|
||||
void setup(){
|
||||
Serial.begin(115200);
|
||||
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Warning);
|
||||
while(!Serial);
|
||||
|
||||
url.begin("http://stream.srg-ssr.ch/m/rsj/mp3_128","audio/mp3");
|
||||
}
|
||||
|
||||
void loop(){
|
||||
copier.copy();
|
||||
}
|
||||
Reference in New Issue
Block a user