noos::object::audio Class Reference
class which wraps around raw bytes of an audiofile More...
#include <audio.hpp>
Public Member Functions | |
| audio (const std::string filepath) | |
| Construct from a file on disk. | |
| audio (std::ifstream &bytestream) | |
| Construct using an open file stream. More... | |
| audio (std::vector< noos::types::byte > bytearray) | |
| Construct using an existing byte-array. More... | |
| audio (const audio &)=default | |
| Copy constructor. | |
| std::vector< noos::types::byte > | bytearray () const |
| Get audio as array of bytes. | |
| bool | operator== (const audio &rhs) const |
| Equality operator. | |
| bool | operator!= (const audio &rhs) const |
| Inequality operator. | |
| audio & | operator= (const audio &)=default |
| Assignment operator. | |
| bool | save (const std::string filepath) |
| Save audio to filepath. | |
Detailed Description
class which wraps around raw bytes of an audiofile
- Version
- 0.7.3
- Date
- 10 June 2017
Constructor & Destructor Documentation
| noos::object::audio::audio | ( | std::ifstream & | bytestream | ) |
Construct using an open file stream.
- Parameters
-
bytestream will be consumed by the object
| noos::object::audio::audio | ( | std::vector< noos::types::byte > | bytearray | ) |
Construct using an existing byte-array.
- Parameters
-
bytearray should contain the audio data
The documentation for this class was generated from the following file:
- noos/objects/audio.hpp
