Olivier Smeesters / Mbed 2 deprecated DtmfKit

Dependencies:   mbed ExtTextLCD

Embed: (wiki syntax)

« Back to documentation index

SoundWaveGenerator Class Reference

SoundWaveGenerator Class Reference

A class to handle computed sound wave generation. More...

#include <SoundWaveGenerator.h>

Public Member Functions

void play (Wave *wave)
 Starts playing a given wave.
void stop ()
 Stops playing.

Detailed Description

A class to handle computed sound wave generation.

The generator is bound to an AnalogOut pin (p18 on LPC1768). It has a fixed sample rate.

Definition at line 14 of file SoundWaveGenerator.h.


Member Function Documentation

void play ( Wave wave )

Starts playing a given wave.

The wave will be prepared for the generator's sample rate and then played back on the bound analog output.

Definition at line 5 of file SoundWaveGenerator.cpp.

void stop (  )

Stops playing.

Definition at line 15 of file SoundWaveGenerator.cpp.