libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
AudioGen Class Reference

Audio signal generator for producing test tones and silence. More...

#include <audiogen.h>

Classes

struct  Config
 Per-channel configuration for the audio generator. More...
 

Public Types

enum  Type { Silence = 0 , Sine }
 Type of audio signal to generate. More...
 

Public Member Functions

 AudioGen (const AudioDesc &desc)
 Constructs an audio generator with the given audio description.
 
Audio generate (size_t samples)
 Generates the specified number of audio samples.
 
const Configconfig (size_t chan) const
 Returns the configuration for the given channel.
 
void setConfig (size_t chan, Config val)
 Sets the configuration for the given channel.
 

Detailed Description

Audio signal generator for producing test tones and silence.

Member Enumeration Documentation

◆ Type

Type of audio signal to generate.

Enumerator
Silence 

Generate silence (all zeros).

Sine 

Generate a sine wave.


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