-
Notifications
You must be signed in to change notification settings - Fork 5
Selecting a Decoder
Phil Schatzmann edited this page Nov 15, 2023
·
31 revisions
First you need to define the codec that snapcast is using in /etc/snapserver.conf
codec = opus
is selecting the opus decoder. Supported values are flac, ogg, opus and pcm
After you have installed the necessary decoder library you can select on of the following decoders:
#include "AudioCodecs/CodecOpus.h" // https://github.com/pschatzmann/arduino-libopus.git
#include "AudioCodecs/CodecFLAC.h" // https://github.com/pschatzmann/arduino-libflac.git
#include "AudioCodecs/CodecVorbis.h" //https://github.com/pschatzmann/arduino-libvorbis-idec
OpusAudioDecoder opus;
FLACDecoder flac;
VorbisDecoder ogg;
WAVDecoder pcm;