EMIPLIB
Public Member Functions

MIPFrequencyGenerator Class Reference

Generates sound with specific frequencies. More...

#include <mipfrequencygenerator.h>

Inheritance diagram for MIPFrequencyGenerator:
Inheritance graph
[legend]
Collaboration diagram for MIPFrequencyGenerator:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.

Parameters:
leftFreqThe frequency of the left channel.
rightFreqThe frequency of the right channel.
leftAmpAmplitude of signal in the left channel.
rightAmpAmplitude of signal in the right channel.
sampRateThe sampling rate of the output messages.
intervalThe time inverval contained in the output messages.

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