jcontrol.io
Interface SoundDevice

All Known Implementing Classes:
Buzzer

public interface SoundDevice

Defines behaviour for any single voice noise making device.


Method Summary
 void off()
          Turns the noise making device off.
 void on(int frequency)
          Turns the noise making device on to a specific frequency.
 void on(int frequency, int duration)
          Turns the noise making device on to a specific frequncy and off after a specific duration.
 

Method Detail

on

void on(int frequency)
Turns the noise making device on to a specific frequency.

Parameters:
frequency - (in Hz) to use.

off

void off()
Turns the noise making device off.


on

void on(int frequency,
        int duration)
Turns the noise making device on to a specific frequncy and off after a specific duration.

Parameters:
frequency - (in Hz) to use
duration - (in milliseconds) to make noise.