Asynchronously records interleaved float PCM samples to a 16-bit WAV file. More...
#include <audio.hpp>
Classes | |
| class | Impl |
Public Member Functions | |
| AudioRecorder () | |
| AudioRecorder (const AudioRecorder &)=delete | |
| void | capture (const float *samples, unsigned int frame_count, unsigned int channels) |
| double | duration_seconds () const |
| float | gain () const |
| bool | is_recording () const |
| AudioRecorder & | operator= (const AudioRecorder &)=delete |
| void | set_gain (float gain) |
| bool | start (const std::string &filepath, unsigned int sample_rate, unsigned int channels) |
| void | stop () |
| ~AudioRecorder () | |
Private Attributes | |
| std::unique_ptr< Impl > | impl |
Asynchronously records interleaved float PCM samples to a 16-bit WAV file.
Definition at line 60 of file ACMX2/audio.hpp.
| acmx2::audio::AudioRecorder::AudioRecorder | ( | ) |
Definition at line 357 of file ACMX2/audio.cpp.
References impl.
Referenced by AudioRecorder(), and operator=().
|
default |
|
delete |
References AudioRecorder().
| void acmx2::audio::AudioRecorder::capture | ( | const float * | samples, |
| unsigned int | frame_count, | ||
| unsigned int | channels ) |
Definition at line 366 of file ACMX2/audio.cpp.
References impl.
Referenced by operator=(), and acmx2::audio::AudioEngine::Impl::process_callback().
| double acmx2::audio::AudioRecorder::duration_seconds | ( | ) | const |
| float acmx2::audio::AudioRecorder::gain | ( | ) | const |
Definition at line 370 of file ACMX2/audio.cpp.
References impl.
Referenced by operator=(), and set_gain().
| bool acmx2::audio::AudioRecorder::is_recording | ( | ) | const |
Definition at line 364 of file ACMX2/audio.cpp.
References impl.
Referenced by ACView::beginMuxing(), operator=(), ACView::stopWriterThread(), and ACView::~ACView().
|
delete |
References AudioRecorder(), capture(), duration_seconds(), gain(), is_recording(), set_gain(), start(), and stop().
| void acmx2::audio::AudioRecorder::set_gain | ( | float | gain | ) |
Definition at line 368 of file ACMX2/audio.cpp.
Referenced by operator=().
| bool acmx2::audio::AudioRecorder::start | ( | const std::string & | filepath, |
| unsigned int | sample_rate, | ||
| unsigned int | channels ) |
| void acmx2::audio::AudioRecorder::stop | ( | ) |
Definition at line 362 of file ACMX2/audio.cpp.
References impl.
Referenced by ACView::beginMuxing(), acmx2::audio::AudioEngine::Impl::close(), operator=(), ACView::runMuxSync(), ACView::stopWriterThread(), and ACView::~ACView().
|
private |
Definition at line 80 of file ACMX2/audio.hpp.
Referenced by AudioRecorder(), capture(), duration_seconds(), gain(), is_recording(), set_gain(), start(), and stop().