Provides SID audio data.
More...
#include <SIDStream.h>
|
int16_t | readSample () |
| Provides a single sample.
|
|
void | updateTimeOfLastSound (int16_t *data, int len) |
|
Provides SID audio data.
- Author
- Gunnar Larsen
- Copyright
- GPLv3
◆ SIDStream()
audio_tools::SIDStream::SIDStream |
( |
const unsigned char * |
tunedata, |
|
|
int |
tunedatalen, |
|
|
int |
subtune = 0 |
|
) |
| |
|
inline |
Construct a new SIDStream object To play a song just call begin()
- Parameters
-
tunedata | |
tunedatalen | |
subtune | |
◆ isActive()
bool audio_tools::SIDStream::isActive |
( |
int |
timeoutMs = 2000 | ) |
|
|
inline |
Detects if we still produce any sound: Some submodule play endlessly, others only for a short period of time This method can detect the ones that have ended and produce 0 as output. Warning: you need to call readBytes while using this method.
◆ setSID()
void audio_tools::SIDStream::setSID |
( |
const unsigned char * |
tunedata, |
|
|
int |
tunedatalen, |
|
|
int |
subtune = 0 |
|
) |
| |
|
inline |
Loads the tune to be played and starts generating audio.
- Parameters
-
tunedata | |
tunedatalen | |
subtune | |
The documentation for this class was generated from the following file: