MonoBrick EV3 Firmware
Public Member Functions | Properties | List of all members
MonoBrickFirmware.Sound.Speaker Class Reference

Public Member Functions

 Speaker (int volume)
 
void PlayTone (UInt16 frequency, UInt16 durationMs)
 Play a tone. More...
 
void PlayTone (UInt16 frequency, UInt16 durationMs, int volume)
 Play a tone. More...
 
void Beep ()
 Make the brick beep More...
 
void Beep (UInt16 durationMs)
 Make the brick beep More...
 
void Beep (UInt16 durationMs, int volume)
 Make the brick beep More...
 
void Buzz ()
 Make the brick buzz More...
 
void Buzz (UInt16 durationMs)
 Make the brick buzz More...
 
void Buzz (UInt16 durationMs, int volume)
 Make the brick buzz More...
 
void Click ()
 Make the brick click More...
 
void Click (int volume)
 Make the brick click More...
 
void PlaySoundFile (string name)
 Play a sound file. More...
 
void PlaySoundFile (string name, int volume)
 Play a sound file. More...
 
void StopSoundPlayback ()
 Stops all sound playback. More...
 

Properties

int Volume [get, set]
 

Member Function Documentation

void MonoBrickFirmware.Sound.Speaker.Beep ( )
inline

Make the brick beep

void MonoBrickFirmware.Sound.Speaker.Beep ( UInt16  durationMs)
inline

Make the brick beep

Parameters
durationMsDuration in ms.
void MonoBrickFirmware.Sound.Speaker.Beep ( UInt16  durationMs,
int  volume 
)
inline

Make the brick beep

Parameters
durationMsDuration in ms.
volumeVolume of the beep
void MonoBrickFirmware.Sound.Speaker.Buzz ( )
inline

Make the brick buzz

void MonoBrickFirmware.Sound.Speaker.Buzz ( UInt16  durationMs)
inline

Make the brick buzz

Parameters
durationMsDuration in ms.
void MonoBrickFirmware.Sound.Speaker.Buzz ( UInt16  durationMs,
int  volume 
)
inline

Make the brick buzz

Parameters
durationMsDuration in ms.
volumeVolume of the beep
void MonoBrickFirmware.Sound.Speaker.Click ( )
inline

Make the brick click

void MonoBrickFirmware.Sound.Speaker.Click ( int  volume)
inline

Make the brick click

void MonoBrickFirmware.Sound.Speaker.PlaySoundFile ( string  name)
inline

Play a sound file.

Parameters
nameName the name of the file to play
volumeVolume.
repeatIf set to true the file will play in a loop
void MonoBrickFirmware.Sound.Speaker.PlaySoundFile ( string  name,
int  volume 
)
inline

Play a sound file.

Parameters
nameFile to play
volumeVolume.
repeatIf set to true the file will play in a loop
void MonoBrickFirmware.Sound.Speaker.PlayTone ( UInt16  frequency,
UInt16  durationMs 
)
inline

Play a tone.

Parameters
volumeVolume.
frequencyFrequency of the tone
durationMsDuration in ms.
void MonoBrickFirmware.Sound.Speaker.PlayTone ( UInt16  frequency,
UInt16  durationMs,
int  volume 
)
inline

Play a tone.

Parameters
volumeVolume.
frequencyFrequency of the tone
durationMsDuration in ms.
durationMsVolume .
void MonoBrickFirmware.Sound.Speaker.StopSoundPlayback ( )
inline

Stops all sound playback.


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