class which wraps around raw bytes of an audiofile
More...
#include <audio.hpp>
class which wraps around raw bytes of an audiofile
- Version
- 2
- Date
- January-2016
- Author
- Alex Gkiokas a.gki.nosp@m.okas.nosp@m.@orte.nosp@m.lio..nosp@m.co.uk
Definition at line 13 of file audio.hpp.
rapp::object::audio::audio |
( |
const std::string |
filepath | ) |
|
Construct from a file on disk.
Definition at line 17 of file audio.hpp.
rapp::object::audio::audio |
( |
std::ifstream & |
bytestream | ) |
|
Construct using an open file stream.
- Parameters
-
bytestream | will be consumed by the object |
Definition at line 33 of file audio.hpp.
construct using an existing byte-array
- Parameters
-
bytearray | should contain the audio data |
Definition at line 40 of file audio.hpp.
rapp::object::audio::audio |
( |
const audio & |
| ) |
|
|
default |
rapp::object::audio::audio |
( |
| ) |
|
|
privatedelete |
virtual std::string rapp::object::audio::audio_source |
( |
| ) |
const |
|
virtual |
Get audio as array of bytes.
Definition at line 48 of file audio.hpp.
virtual std::string rapp::object::audio::extension |
( |
| ) |
const |
|
virtual |
audio& rapp::object::audio::operator= |
( |
const audio & |
| ) |
|
|
default |
bool rapp::object::audio::operator== |
( |
const audio & |
rhs | ) |
const |
Are audios same ?
Definition at line 54 of file audio.hpp.
void rapp::object::audio::read_bytes |
( |
std::ifstream & |
bytestream | ) |
|
|
private |
bool rapp::object::audio::save |
( |
const std::string |
filepath | ) |
|
Save audio to filepath.
Definition at line 64 of file audio.hpp.
The documentation for this class was generated from the following file:
- /home/travis/rapp_temp/rapp-api/cpp/includes/objects/audio/audio.hpp