INET Framework for OMNeT++/OMNEST
|
Records audio into a file. More...
#include <AudioOutFile.h>
Public Member Functions | |
AudioOutFile () | |
~AudioOutFile () | |
void | open (const char *resultFile, int sampleRate, short int sampleBits) |
void | write (void *inbuf, int inbytes) |
bool | close () |
bool | isOpen () const |
Protected Member Functions | |
void | addAudioStream (enum AVCodecID codec_id, int sampleRate, short int sampleBits) |
Protected Attributes | |
bool | opened |
AVStream * | audio_st |
AVFormatContext * | oc |
Records audio into a file.
|
inline |
inet::AudioOutFile::~AudioOutFile | ( | ) |
|
protected |
Referenced by open().
bool inet::AudioOutFile::close | ( | ) |
Referenced by inet::VoIPStreamReceiver::closeConnection(), inet::VoIPStreamSender::finish(), and ~AudioOutFile().
|
inline |
Referenced by inet::VoIPStreamSender::generatePacket().
void inet::AudioOutFile::open | ( | const char * | resultFile, |
int | sampleRate, | ||
short int | sampleBits | ||
) |
Referenced by inet::VoIPStreamSender::openSoundFile().
void inet::AudioOutFile::write | ( | void * | inbuf, |
int | inbytes | ||
) |
Referenced by inet::VoIPStreamSender::generatePacket().
|
protected |
Referenced by addAudioStream(), close(), open(), and write().
|
protected |
Referenced by addAudioStream(), close(), open(), and write().