arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
CodecHelix.h
1#pragma once
2
3#include "AudioTools/AudioCodecs/AudioCodecsBase.h"
4#include "AudioTools/AudioCodecs/CodecAACHelix.h"
5#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
6#include "AudioTools/AudioCodecs/CodecWAV.h"
7#include "AudioTools/AudioCodecs/MultiDecoder.h"
8
9namespace audio_tools {
10
22class DecoderHelix : public MultiDecoder {
23 public:
24 DecoderHelix() {
25 // register supported codecs with their mime type
26 addDecoder(mp3, "audio/mpeg");
27 addDecoder(aac, "audio/aac");
28 addDecoder(wav, "audio/vnd.wave");
29 }
30
31 protected:
34 WAVDecoder wav;
35};
36
37} // namespace audio_tools
AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix This is basically just a ...
Definition CodecAACHelix.h:19
MP3 and AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix....
Definition CodecHelix.h:22
MP3 Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix This is basically just a ...
Definition CodecMP3Helix.h:19
Manage multiple decoders: the actual decoder is only opened when it has been selected....
Definition MultiDecoder.h:20
void addDecoder(AudioDecoder &decoder, const char *mime)
Adds a decoder that will be selected by it's mime type.
Definition MultiDecoder.h:46
A simple WAVDecoder: We parse the header data on the first record to determine the format....
Definition CodecWAV.h:271
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition AudioCodecsBase.h:10