RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
rapp::object::microphone_wav Class Reference

WAV Single channel 16Khz > Headset audio source. More...

#include <audio.hpp>

Inheritance diagram for rapp::object::microphone_wav:
Collaboration diagram for rapp::object::microphone_wav:

Public Member Functions

 microphone_wav (const std::string filepath)
 
 microphone_wav (std::ifstream &bytestream)
 
 microphone_wav (std::vector< rapp::types::byte > bytearray)
 
std::string audio_source () const
 
std::string extension () const
 
- Public Member Functions inherited from rapp::object::audio
 audio (const std::string filepath)
 Construct from a file on disk. More...
 
 audio (std::ifstream &bytestream)
 Construct using an open file stream. More...
 
 audio (std::vector< rapp::types::byte > bytearray)
 construct using an existing byte-array More...
 
 audio (const audio &)=default
 Copy constructor. More...
 
std::vector< rapp::types::bytebytearray () const
 Get audio as array of bytes. More...
 
audiooperator= (const audio &)=default
 Assignment operator. More...
 
bool operator== (const audio &rhs) const
 Are audios same ? More...
 
bool save (const std::string filepath)
 Save audio to filepath. More...
 

Detailed Description

WAV Single channel 16Khz > Headset audio source.

Definition at line 154 of file audio.hpp.

Constructor & Destructor Documentation

rapp::object::microphone_wav::microphone_wav ( const std::string  filepath)

Definition at line 158 of file audio.hpp.

rapp::object::microphone_wav::microphone_wav ( std::ifstream &  bytestream)

Definition at line 161 of file audio.hpp.

rapp::object::microphone_wav::microphone_wav ( std::vector< rapp::types::byte bytearray)

Definition at line 164 of file audio.hpp.

Member Function Documentation

std::string rapp::object::microphone_wav::audio_source ( ) const
virtual

Reimplemented from rapp::object::audio.

Definition at line 168 of file audio.hpp.

std::string rapp::object::microphone_wav::extension ( ) const
virtual

Reimplemented from rapp::object::audio.

Definition at line 171 of file audio.hpp.


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