Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SoundWaveGeneratorTest SoundWaveGeneratorTest
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.
Generated on Wed Jul 13 2022 01:41:32 by
1.7.2