SID Player
All Classes Functions Pages
Public Member Functions | Protected Attributes | List of all members
audio_tools::SIDAudioSource Class Reference

AudioSource with SID files which are stored in PROGMEM. More...

#include <SIDAudioSource.h>

Inheritance diagram for audio_tools::SIDAudioSource:

Public Member Functions

 SIDAudioSource (const SidTitle *songs, int count)
 
void addSong (SidTitle song)
 
virtual void begin ()
 Reset actual stream and move to root.
 
virtual Stream * nextStream (int offset)
 Returns next audio stream.
 
virtual Stream * selectStream (int index)
 
size_t actualFileSize ()
 
int size ()
 File size of actual file.
 
void clear ()
 Clears all songs.
 
virtual Stream * selectStream (const char *path)
 Returns audio stream by path.
 

Protected Attributes

int index = 0
 
Vector< SidTitlesongs {0}
 
MemoryStream stream {nullptr,0,true, FLASH_RAM}
 
size_t title_size = 0
 

Detailed Description

AudioSource with SID files which are stored in PROGMEM.

Author
Phil Schatzmann

Member Function Documentation

◆ selectStream()

virtual Stream* audio_tools::SIDAudioSource::selectStream ( int  index)
inlinevirtual

Returns audio stream at the indicated index (the index is zero based, so the first value is 0!)


The documentation for this class was generated from the following file: