4#ifndef _SCENEPIC_AUDIO_TRACK_H_
5#define _SCENEPIC_AUDIO_TRACK_H_
22 void load(
const std::string& path);
36 const std::vector<std::uint8_t>&
data()
const;
39 std::vector<std::uint8_t>&
data();
45 const std::string&
ext()
const;
58 std::vector<std::uint8_t> m_data;
59 std::string m_audio_id;
Audio track that can be connected to a canvas.
Definition: audio_track.h:17
const std::string & audio_id() const
A unique identifier for the audio.
AudioTrack & ext(const std::string &value)
The extension of the audio track (e.g.
JsonValue to_json() const
Convert this object into ScenePic json.
AudioTrack & data(const std::vector< std::uint8_t > &value)
The encoded binary audio data.
const std::vector< std::uint8_t > & data() const
The encoded binary audio data.
void load(const std::string &path)
Load an audio file from the disk.
std::string to_string() const
Return a JSON string representing the object.
const std::string & ext() const
The extension of the audio track (e.g.
std::vector< std::uint8_t > & data()
The encoded binary audio data.
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Top level container representing an entire ScenePic.
Definition: scene.h:58
Definition: audio_track.h:14