1 #ifndef NOOS_OBJECT_AUDIO 2 #define NOOS_OBJECT_AUDIO 3 #include "includes.ihh" 4 #include <noos/objects/globals.hpp> 22 audio(
const std::string filepath);
26 audio(std::ifstream & bytestream);
36 std::vector<noos::types::byte>
bytearray()
const;
48 bool save(
const std::string filepath);
54 void read_bytes(std::ifstream & bytestream);
56 std::vector<noos::types::byte> bytearray_;
std::vector< noos::types::byte > bytearray() const
Get audio as array of bytes.
bool operator==(const audio &rhs) const
Equality operator.
Definition: asio_handler.hpp:14
class which wraps around raw bytes of an audiofile
Definition: audio.hpp:18
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.