EMIPLIB
|
Generates sound with specific frequencies. More...
#include <mipfrequencygenerator.h>
Public Member Functions | |
bool | init (real_t leftFreq, real_t rightFreq, real_t leftAmp, real_t rightAmp, int sampRate, MIPTime interval) |
Initializes the frequency generator. |
This component generates stereo sound, containing a signal with a specific frequency in each channel. It takes system messages with subtype MIPSYSTEMMESSAGE_TYPE_ISTIME as input and generates stereo floating point raw audio messages.
bool MIPFrequencyGenerator::init | ( | real_t | leftFreq, |
real_t | rightFreq, | ||
real_t | leftAmp, | ||
real_t | rightAmp, | ||
int | sampRate, | ||
MIPTime | interval | ||
) |
This function is used to initialize the frequency generator.
leftFreq | The frequency of the left channel. |
rightFreq | The frequency of the right channel. |
leftAmp | Amplitude of signal in the left channel. |
rightAmp | Amplitude of signal in the right channel. |
sampRate | The sampling rate of the output messages. |
interval | The time inverval contained in the output messages. |