|
scenepic 1.1.0
3D Visualization Made Easy
|
Audio track that can be connected to a canvas. More...
#include <audio_track.h>
Public Member Functions | |
| void | load (const std::string &path) |
| Load an audio file from the disk. More... | |
| std::string | to_string () const |
| Return a JSON string representing the object. More... | |
| JsonValue | to_json () const |
| Convert this object into ScenePic json. More... | |
| const std::string & | audio_id () const |
| A unique identifier for the audio. More... | |
| const std::vector< std::uint8_t > & | data () const |
| The encoded binary audio data. More... | |
| std::vector< std::uint8_t > & | data () |
| The encoded binary audio data. More... | |
| AudioTrack & | data (const std::vector< std::uint8_t > &value) |
| The encoded binary audio data. More... | |
| const std::string & | ext () const |
| The extension of the audio track (e.g. More... | |
| AudioTrack & | ext (const std::string &value) |
| The extension of the audio track (e.g. More... | |
Friends | |
| class | Scene |
Audio track that can be connected to a canvas.
| const std::string & scenepic::AudioTrack::audio_id | ( | ) | const |
A unique identifier for the audio.
| std::vector< std::uint8_t > & scenepic::AudioTrack::data | ( | ) |
The encoded binary audio data.
| const std::vector< std::uint8_t > & scenepic::AudioTrack::data | ( | ) | const |
The encoded binary audio data.
| AudioTrack & scenepic::AudioTrack::data | ( | const std::vector< std::uint8_t > & | value | ) |
The encoded binary audio data.
| const std::string & scenepic::AudioTrack::ext | ( | ) | const |
The extension of the audio track (e.g.
MP3, OGG)
| AudioTrack & scenepic::AudioTrack::ext | ( | const std::string & | value | ) |
The extension of the audio track (e.g.
MP3, OGG)
| void scenepic::AudioTrack::load | ( | const std::string & | path | ) |
Load an audio file from the disk.
| path | the path to the audio file |
| JsonValue scenepic::AudioTrack::to_json | ( | ) | const |
Convert this object into ScenePic json.
| std::string scenepic::AudioTrack::to_string | ( | ) | const |
Return a JSON string representing the object.
|
friend |