Java android.media ToneGenerator fields, constructors, methods, implement or subclass

Example usage for Java android.media ToneGenerator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media ToneGenerator.

The text is from its open source code.

Field

intTONE_DTMF_0
DTMF tone for key 0: 1336Hz, 941Hz, continuous

intTONE_DTMF_1
DTMF tone for key 1: 1209Hz, 697Hz, continuous
intTONE_DTMF_2
DTMF tone for key 2: 1336Hz, 697Hz, continuous
intTONE_DTMF_3
DTMF tone for key 3: 1477Hz, 697Hz, continuous
intTONE_DTMF_4
DTMF tone for key 4: 1209Hz, 770Hz, continuous
intTONE_DTMF_5
DTMF tone for key 5: 1336Hz, 770Hz, continuous
intTONE_DTMF_6
DTMF tone for key 6: 1477Hz, 770Hz, continuous
intTONE_DTMF_7
DTMF tone for key 7: 1209Hz, 852Hz, continuous
intTONE_DTMF_8
DTMF tone for key 8: 1336Hz, 852Hz, continuous
intTONE_DTMF_9
DTMF tone for key 9: 1477Hz, 852Hz, continuous
intTONE_DTMF_S
DTMF tone for key *: 1209Hz, 941Hz, continuous
intTONE_DTMF_P
DTMF tone for key #: 1477Hz, 941Hz, continuous
intTONE_DTMF_A
DTMF tone for key A: 1633Hz, 697Hz, continuous
intTONE_DTMF_B
DTMF tone for key B: 1633Hz, 770Hz, continuous
intTONE_DTMF_C
DTMF tone for key C: 1633Hz, 852Hz, continuous
intTONE_DTMF_D
DTMF tone for key D: 1633Hz, 941Hz, continuous
intTONE_SUP_RINGTONE
Call supervisory tone, Ring Tone: CEPT, JAPAN: 425Hz, 1s ON, 4s OFF...
intTONE_PROP_BEEP
Proprietary tone, general beep: 400Hz+1200Hz, 35ms ON
intTONE_PROP_ACK
Proprietary tone, positive acknowlegement: 1200Hz, 100ms ON, 100ms OFF 2 bursts
intTONE_PROP_NACK
Proprietary tone, negative acknowlegement: 300Hz+400Hz+500Hz, 400ms ON
intTONE_PROP_BEEP2
Proprietary tone, general double beep: twice 400Hz+1200Hz, 35ms ON, 200ms OFF, 35ms ON
intTONE_CDMA_CONFIRM
CDMA Confirm tone: 350Hz+440Hz 100ms ON, 100ms OFF repeated for 3 times
intTONE_CDMA_PIP
CDMA PIP tone: 480Hz 100ms ON, 100ms OFF repeated for 4 times
intTONE_CDMA_ALERT_NETWORK_LITE
CDMA Alert Network Lite tone: 1109Hz 62ms ON, 784Hz 62ms ON, 740Hz 62ms ON 622Hz 62ms ON, 1109Hz 62ms ON
intTONE_CDMA_ONE_MIN_BEEP
CDMA One Min Beep tone: 1150Hz+770Hz 400ms ON
intTONE_CDMA_ALERT_CALL_GUARD
CDMA ALERT CALL GUARD tone: {1319Hz 125ms ON, 125ms OFF} 3 times
intTONE_CDMA_SOFT_ERROR_LITE
CDMA SOFT ERROR LITE tone: 1047Hz 125ms ON, 370Hz 125ms
intTONE_CDMA_ABBR_ALERT
CDMA_ABBR_ALERT tone: 1150Hz+770Hz 400ms ON
intMAX_VOLUME
Maximum volume, for use with #ToneGenerator(int,int)

Constructor

ToneGenerator(int streamType, int volume)
ToneGenerator class contructor specifying output stream type and volume.

Method

voidrelease()
Releases resources associated with this ToneGenerator object.
booleanstartTone(int toneType, int durationMs)
This method starts the playback of a tone of the specified type for the specified duration.
booleanstartTone(int toneType)
This method starts the playback of a tone of the specified type.
voidstopTone()
This method stops the tone currently playing playback.