ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
acmx2::audio::AudioRecorder Class Reference

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

Detailed Description

Asynchronously records interleaved float PCM samples to a 16-bit WAV file.

Definition at line 60 of file ACMX2/audio.hpp.

Constructor & Destructor Documentation

◆ AudioRecorder() [1/2]

acmx2::audio::AudioRecorder::AudioRecorder ( )

Definition at line 357 of file ACMX2/audio.cpp.

References impl.

Referenced by AudioRecorder(), and operator=().

◆ ~AudioRecorder()

acmx2::audio::AudioRecorder::~AudioRecorder ( )
default

◆ AudioRecorder() [2/2]

acmx2::audio::AudioRecorder::AudioRecorder ( const AudioRecorder & )
delete

References AudioRecorder().

Member Function Documentation

◆ capture()

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().

◆ duration_seconds()

double acmx2::audio::AudioRecorder::duration_seconds ( ) const

Definition at line 372 of file ACMX2/audio.cpp.

References impl.

Referenced by operator=().

◆ gain()

float acmx2::audio::AudioRecorder::gain ( ) const

Definition at line 370 of file ACMX2/audio.cpp.

References impl.

Referenced by operator=(), and set_gain().

◆ is_recording()

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().

◆ operator=()

AudioRecorder & acmx2::audio::AudioRecorder::operator= ( const AudioRecorder & )
delete

◆ set_gain()

void acmx2::audio::AudioRecorder::set_gain ( float gain)

Definition at line 368 of file ACMX2/audio.cpp.

References gain(), and impl.

Referenced by operator=().

◆ start()

bool acmx2::audio::AudioRecorder::start ( const std::string & filepath,
unsigned int sample_rate,
unsigned int channels )

Definition at line 360 of file ACMX2/audio.cpp.

References impl.

Referenced by operator=().

◆ stop()

void acmx2::audio::AudioRecorder::stop ( )

Member Data Documentation

◆ impl

std::unique_ptr<Impl> acmx2::audio::AudioRecorder::impl
private

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