|
| AudioPlayer () |
| Default constructor.
|
|
| AudioPlayer (AudioPlayer const &)=delete |
|
| AudioPlayer (AudioSource &source, AudioOutput &output, AudioDecoder &decoder) |
| Construct a new Audio Player object. The processing chain is AudioSource -> Stream-copy -> EncodedAudioStream -> VolumeStream -> FadeStream -> Print. More...
|
|
| AudioPlayer (AudioSource &source, AudioStream &output, AudioDecoder &decoder) |
| Construct a new Audio Player object. The processing chain is AudioSource -> Stream-copy -> EncodedAudioStream -> VolumeStream -> FadeStream -> Print. More...
|
|
| AudioPlayer (AudioSource &source, Print &output, AudioDecoder &decoder, AudioInfoSupport *notify=nullptr) |
| Construct a new Audio Player object. The processing chain is AudioSource -> Stream-copy -> EncodedAudioStream -> VolumeStream -> FadeStream -> Print. More...
|
|
void | addNotifyAudioChange (AudioInfoSupport *notify) |
| (Re)defines the notify
|
|
virtual AudioInfo | audioInfo () override |
| provides the actual input AudioInfo
|
|
virtual AudioInfo | audioInfoOut () |
| provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
|
|
virtual bool | begin (int index=0, bool isActive=true) |
| (Re)Starts the playing of the music (from the beginning or the indicated index)
|
|
virtual size_t | copy () |
|
virtual size_t | copy (size_t bytes) |
| Call this method in the loop.
|
|
virtual void | end () |
|
virtual Stream * | getStream () |
| Provides the actual stream (=e.g.file)
|
|
StreamCopy & | getStreamCopy () |
|
VolumeStream & | getVolumeStream () |
| Provides the reference to the volume stream.
|
|
virtual bool | isActive () |
| determines if the player is active
|
|
bool | isAutoFade () |
|
bool | isSilenceOnInactive () |
| Checks if silence_on_inactive has been activated (default false)
|
|
virtual bool | next (int offset=1) |
|
| operator bool () |
| determines if the player is active
|
|
AudioPlayer & | operator= (AudioPlayer const &)=delete |
|
virtual void | play () |
| starts / resumes the playing after calling stop(): same as setActive(true)
|
|
virtual bool | previous (int offset=1) |
| moves to previous file
|
|
virtual void | setActive (bool isActive) |
| The same like start() / stop()
|
|
virtual void | setAudioInfo (AudioInfo info) override |
| Updates the audio info in the related objects.
|
|
void | setAudioSource (AudioSource &source) |
| (Re)defines the audio source
|
|
void | setAutoFade (bool active) |
|
virtual void | setAutoNext (bool next) |
|
virtual void | setBufferSize (int size) |
| Defines the number of bytes used by the copier.
|
|
void | setDecoder (AudioDecoder &decoder) |
| (Re)defines the decoder
|
|
virtual void | setDelayIfOutputFull (int delayMs) |
| Defines the wait time in ms if the target output is full.
|
|
virtual bool | setIndex (int idx) |
| moves to the selected file position
|
|
virtual void | setMetadataCallback (void(*callback)(MetaDataType type, const char *str, int len), ID3TypeSelection sel=SELECT_ID3) |
| Defines the medatadata callback.
|
|
void | setOutput (AudioOutput &output) |
|
void | setOutput (AudioStream &output) |
|
void | setOutput (Print &output) |
|
virtual bool | setPath (const char *path) |
| Moves to the selected file w/o updating the actual file position.
|
|
void | setSilenceOnInactive (bool active) |
|
virtual bool | setStream (Stream *input) |
| start selected input stream
|
|
bool | setVolume (float volume) override |
| sets the volume - values need to be between 0.0 and 1.0
|
|
virtual void | setVolumeControl (VolumeControl &vc) |
| Change the VolumeControl implementation.
|
|
virtual void | stop () |
| halts the playing: same as setActive(false)
|
|
float | volume () override |
| Determines the actual volume.
|
|
void | writeSilence (size_t bytes) |
| Sends the requested bytes as 0 values to the output.
|
|
Implements a simple audio player which supports the following commands:
- begin
- play
- stop
- next
- set Volume
- Author
- Phil Schatzmann
- Copyright
- GPLv3