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::bytebytearray () const
 Get audio as array of bytes.
 
bool operator== (const audio &rhs) const
 Equality operator.
 
bool operator!= (const audio &rhs) const
 Inequality operator.
 
audiooperator= (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
Author
Alex Gkiokas a.gki.nosp@m.okas.nosp@m.@orte.nosp@m.lio..nosp@m.co.uk

Constructor & Destructor Documentation

noos::object::audio::audio ( std::ifstream &  bytestream)

Construct using an open file stream.

Parameters
bytestreamwill be consumed by the object
noos::object::audio::audio ( std::vector< noos::types::byte bytearray)

Construct using an existing byte-array.

Parameters
bytearrayshould contain the audio data

The documentation for this class was generated from the following file: