avnd_tools::AudioRecorder Struct Reference

Detailed Description

Records audio into a WAV file.

Writing to the disk is done in a worker thread as is tradition.

Classes

struct  process_message
 
struct  recorder_thread
 
struct  reset_message
 

Public Types

using audio_buffer = boost::container::vector< double >
 
using worker_message = ossia::variant< reset_message, process_message >
 

Public Member Functions

 halp_meta (name, "Audio recorder") halp_meta(author
 
ossia team halp_meta (category, "Audio/Recording") halp_meta(description
 
ossia team Records audio to a file halp_meta (c_name, "avnd_audio_recorder") halp_meta(uuid
 
void prepare (halp::setup s)
 
void update ()
 
void operator() (int frames)
 

Public Attributes

std::shared_ptr< recorder_threadimpl = std::make_shared<recorder_thread>()
 
struct {
   std::function< void(std::shared_ptr< recorder_thread >, worker_message)>   request
 
worker
 
struct {
   halp::dynamic_audio_bus<"Audio", double >   audio
 
      filename
 
      record
 
inputs
 
struct {
   halp::callback<"Filename", std::string >   finished
 
outputs
 
int current_rate = 0
 
bool started {}
 
std::optional< int64_t > first_message_sent_pos
 
std::optional< int64_t > last_message_sent_pos
 
audio_buffer data
 
std::string filename_to_output
 

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