java.lang.Object | |
↳ | android.media.ToneGenerator |
This class provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111). Depending on call state and routing options, tones are mixed to the downlink audio or output to the speaker phone or headset. This API is not for generating tones over the uplink audio path.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_VOLUME |
Maximum volume, for use with
ToneGenerator(int, int)
|
|||||||||
int | MIN_VOLUME |
Minimum volume setting, for use with
ToneGenerator(int, int)
|
|||||||||
int | TONE_CDMA_ABBR_ALERT | CDMA_ABBR_ALERT tone: 1150Hz+770Hz 400ms ON | |||||||||
int | TONE_CDMA_ABBR_INTERCEPT | CDMA Abbr Intercept tone: 440Hz 250ms ON, 620Hz 250ms ON | |||||||||
int | TONE_CDMA_ABBR_REORDER | CDMA Abbr Reorder tone: 480Hz+620Hz 250ms ON, 250ms OFF repeated for 8 times | |||||||||
int | TONE_CDMA_ALERT_AUTOREDIAL_LITE | CDMA Alert Auto Redial tone: {1245Hz 62ms ON, 659Hz 62ms ON} 3 times, 1245 62ms ON | |||||||||
int | TONE_CDMA_ALERT_CALL_GUARD | CDMA ALERT CALL GUARD tone: {1319Hz 125ms ON, 125ms OFF} 3 times | |||||||||
int | TONE_CDMA_ALERT_INCALL_LITE | CDMA ALERT INCALL LITE tone: 587Hz 62ms, 784 62ms, 831Hz 62ms, 784Hz 62ms, 1109 62ms, 784Hz 62ms, 831Hz 62ms, 784Hz 62ms | |||||||||
int | TONE_CDMA_ALERT_NETWORK_LITE | CDMA Alert Network Lite tone: 1109Hz 62ms ON, 784Hz 62ms ON, 740Hz 62ms ON 622Hz 62ms ON, 1109Hz 62ms ON | |||||||||
int | TONE_CDMA_ANSWER | CDMA answer tone: silent tone - defintion Frequency 0, 0ms ON, 0ms OFF | |||||||||
int | TONE_CDMA_CALLDROP_LITE | CDMA CALLDROP LITE tone: 1480Hz 125ms, 1397Hz 125ms, 784Hz 125ms | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP | ISDN Call Signal Intergroup tone: {2091Hz 32ms ON, 2556 64ms ON} 8 times, 2091Hz 32ms ON, 400ms OFF, {2091Hz 32ms ON, 2556Hz 64ms ON} times, 2091Hz 32ms ON, 4s OFF. | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_NORMAL | ISDN Call Signal Normal tone: {2091Hz 32ms ON, 2556 64ms ON} 20 times, 2091 32ms ON, 2556 48ms ON, 4s OFF | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_PAT3 | ISDN Call sign PAT3 tone: silent tone | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_PAT5 | ISDN Pat5 tone: silent tone | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_PAT6 | ISDN Pat6 tone: silent tone | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_PAT7 | ISDN Pat7 tone: silent tone | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_PING_RING | ISDN Ping Ring tone: {2091Hz 32ms ON, 2556Hz 64ms ON} 5 times 2091Hz 20ms ON | |||||||||
int | TONE_CDMA_CALL_SIGNAL_ISDN_SP_PRI | ISDN Call Signal SP PRI tone:{2091Hz 32ms ON, 2556 64ms ON} 4 times 2091Hz 16ms ON, 200ms OFF, {2091Hz 32ms ON, 2556Hz 64ms ON} 4 times, 2091Hz 16ms ON, 200ms OFF | |||||||||
int | TONE_CDMA_CONFIRM | CDMA Confirm tone: 350Hz+440Hz 100ms ON, 100ms OFF repeated for 3 times | |||||||||
int | TONE_CDMA_DIAL_TONE_LITE | CDMA Dial tone : 425Hz continuous | |||||||||
int | TONE_CDMA_EMERGENCY_RINGBACK | CDMA EMERGENCY RINGBACK tone: {941Hz 125ms ON, 10ms OFF} 3times 4990ms OFF, REPEAT... | |||||||||
int | TONE_CDMA_HIGH_L | TONE_CDMA_HIGH_L tone: {3700Hz 25ms, 4000Hz 25ms} 40 times 4000ms OFF, Repeat .... | |||||||||
int | TONE_CDMA_HIGH_PBX_L | CDMA HIGH PBX L: {3700Hz 25ms, 4000Hz 25ms}20 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_HIGH_PBX_SLS | CDMA HIGH PBX SSL tone:{3700Hz 25ms, 4000Hz 25ms} 8 times 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 16 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 8 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_HIGH_PBX_SS | CDMA HIGH PBX SS tone: {3700Hz 25ms, 4000Hz 25ms} 8 times 200 ms OFF, {3700Hz 25ms 4000Hz 25ms}8 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_HIGH_PBX_SSL | CDMA HIGH PBX SSL tone:{3700Hz 25ms, 4000Hz 25ms} 8 times 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 16 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_HIGH_PBX_S_X4 | CDMA HIGH PBX X S4 tone: {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 800ms OFF, REPEAT... | |||||||||
int | TONE_CDMA_HIGH_SLS | CDMA HIGH SLS tone: {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 20 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 3000ms OFF, REPEAT | |||||||||
int | TONE_CDMA_HIGH_SS | CDMA HIGH SS tone: {3700Hz 25ms, 4000Hz 25ms} repeat 16 times, 400ms OFF, repeat .... | |||||||||
int | TONE_CDMA_HIGH_SSL | CDMA HIGH SSL tone: {3700Hz 25ms, 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} repeat 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} repeat 16 times, 4000ms OFF, repeat ... | |||||||||
int | TONE_CDMA_HIGH_SS_2 | CDMA HIGH SS2 tone: {3700Hz 25ms, 4000Hz 25ms} 20 times, 1000ms OFF, {3700Hz 25ms, 4000Hz 25ms} 20 times, 3000ms OFF, repeat .... | |||||||||
int | TONE_CDMA_HIGH_S_X4 | CDMA HIGH S X4 tone: {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 2500ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_INTERCEPT | CDMA Intercept tone: 440Hz 250ms ON, 620Hz 250ms ON ... | |||||||||
int | TONE_CDMA_KEYPAD_VOLUME_KEY_LITE | CDMA KEYPAD Volume key lite tone: 941Hz+1477Hz 120ms ON | |||||||||
int | TONE_CDMA_LOW_L | TONE_CDMA_LOW_L tone: {1300Hz 25ms, 1450Hz 25ms} 40 times, 4000ms OFF, Repeat .... | |||||||||
int | TONE_CDMA_LOW_PBX_L | CDMA LOW PBX L: {1300Hz 25ms,1450Hz 25ms}20 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_LOW_PBX_SLS | CDMA HIGH PBX SLS tone:{1300Hz 25ms, 1450Hz 25ms} 8 times 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 16 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 8 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_LOW_PBX_SS | CDMA LOW PBX SS tone: {1300Hz 25ms, 1450Hz 25ms} 8 times 200 ms OFF, {1300Hz 25ms 1450Hz 25ms}8 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_LOW_PBX_SSL | CDMA LOW PBX SSL tone:{1300Hz 25ms, 1450Hz 25ms} 8 times 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 16 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_LOW_PBX_S_X4 | CDMA LOW PBX X S4 tone: {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 800ms OFF, REPEAT... | |||||||||
int | TONE_CDMA_LOW_SLS | CDMA LOW SLS tone: {1300Hz 25ms, 1450Hz 25ms} 10 times, 500ms OFF, {1300Hz 25ms, 1450Hz 25ms} 20 times, 500ms OFF, {1300Hz 25ms, 1450Hz 25ms} 10 times, 3000ms OFF, REPEAT | |||||||||
int | TONE_CDMA_LOW_SS | CDMA LOW SS tone: {1300z 25ms, 1450Hz 25ms} repeat 16 times, 400ms OFF, repeat .... | |||||||||
int | TONE_CDMA_LOW_SSL | CDMA LOW SSL tone: {1300Hz 25ms, 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} repeat 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} repeat 16 times, 4000ms OFF, repeat ... | |||||||||
int | TONE_CDMA_LOW_SS_2 | CDMA LOW SS2 tone: {1300Hz 25ms, 1450Hz 25ms} 20 times, 1000ms OFF, {1300Hz 25ms, 1450Hz 25ms} 20 times, 3000ms OFF, repeat .... | |||||||||
int | TONE_CDMA_LOW_S_X4 | CDMA LOW S X4 tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 2500ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_MED_L | TONE_CDMA_MED_L tone: {2600Hz 25ms, 2900Hz 25ms} 40 times 4000ms OFF, Repeat .... | |||||||||
int | TONE_CDMA_MED_PBX_L | CDMA MED PBX L: {2600Hz 25ms, 2900Hz 25ms}20 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_MED_PBX_SLS | CDMA HIGH PBX SLS tone:{2600Hz 25ms, 2900Hz 25ms} 8 times 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 16 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 8 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_MED_PBX_SS | CDMA MED PBX SS tone: {2600Hz 25ms, 2900Hz 25ms} 8 times 200 ms OFF, {2600Hz 25ms 2900Hz 25ms}8 times, 2000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_MED_PBX_SSL | CDMA MED PBX SSL tone:{2600Hz 25ms, 2900Hz 25ms} 8 times 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 16 times, 1000ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_MED_PBX_S_X4 | CDMA MED PBX X S4 tone: {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 800ms OFF, REPEAT... | |||||||||
int | TONE_CDMA_MED_SLS | CDMA MED SLS tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 20 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 3000ms OFF, REPEAT | |||||||||
int | TONE_CDMA_MED_SS | CDMA MED SS tone: {2600Hz 25ms, 2900Hz 25ms} repeat 16 times, 400ms OFF, repeat .... | |||||||||
int | TONE_CDMA_MED_SSL | CDMA MED SSL tone: {2600Hz 25ms, 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} repeat 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} repeat 16 times, 4000ms OFF, repeat ... | |||||||||
int | TONE_CDMA_MED_SS_2 | CDMA MED SS2 tone: {2600Hz 25ms, 2900Hz 25ms} 20 times, 1000ms OFF, {2600Hz 25ms, 2900Hz 25ms} 20 times, 3000ms OFF, repeat .... | |||||||||
int | TONE_CDMA_MED_S_X4 | CDMA MED S X4 tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 2500ms OFF, REPEAT.... | |||||||||
int | TONE_CDMA_NETWORK_BUSY | CDMA Network Busy tone: 480Hz+620Hz 500ms ON, 500ms OFF continuous | |||||||||
int | TONE_CDMA_NETWORK_BUSY_ONE_SHOT | CDMA_NETWORK_BUSY_ONE_SHOT tone: 425Hz 500ms ON, 500ms OFF. | |||||||||
int | TONE_CDMA_NETWORK_CALLWAITING | CDMA Network Callwaiting tone: 440Hz 300ms ON | |||||||||
int | TONE_CDMA_NETWORK_USA_RINGBACK | CDMA USA Ringback: 440Hz+480Hz 2s ON, 4000 OFF ... | |||||||||
int | TONE_CDMA_ONE_MIN_BEEP | CDMA One Min Beep tone: 1150Hz+770Hz 400ms ON | |||||||||
int | TONE_CDMA_PIP | CDMA PIP tone: 480Hz 100ms ON, 100ms OFF repeated for 4 times | |||||||||
int | TONE_CDMA_PRESSHOLDKEY_LITE | CDMA PRESSHOLDKEY LITE tone: 587Hz 375ms ON, 1175Hz 125ms ON | |||||||||
int | TONE_CDMA_REORDER | CDMA Reorder tone: 480Hz+620Hz 250ms ON, 250ms OFF... | |||||||||
int | TONE_CDMA_SIGNAL_OFF | CDMA_SIGNAL_OFF - silent tone | |||||||||
int | TONE_CDMA_SOFT_ERROR_LITE | CDMA SOFT ERROR LITE tone: 1047Hz 125ms ON, 370Hz 125ms | |||||||||
int | TONE_DTMF_0 | DTMF tone for key 0: 1336Hz, 941Hz, continuous | |||||||||
int | TONE_DTMF_1 | DTMF tone for key 1: 1209Hz, 697Hz, continuous | |||||||||
int | TONE_DTMF_2 | DTMF tone for key 2: 1336Hz, 697Hz, continuous | |||||||||
int | TONE_DTMF_3 | DTMF tone for key 3: 1477Hz, 697Hz, continuous | |||||||||
int | TONE_DTMF_4 | DTMF tone for key 4: 1209Hz, 770Hz, continuous | |||||||||
int | TONE_DTMF_5 | DTMF tone for key 5: 1336Hz, 770Hz, continuous | |||||||||
int | TONE_DTMF_6 | DTMF tone for key 6: 1477Hz, 770Hz, continuous | |||||||||
int | TONE_DTMF_7 | DTMF tone for key 7: 1209Hz, 852Hz, continuous | |||||||||
int | TONE_DTMF_8 | DTMF tone for key 8: 1336Hz, 852Hz, continuous | |||||||||
int | TONE_DTMF_9 | DTMF tone for key 9: 1477Hz, 852Hz, continuous | |||||||||
int | TONE_DTMF_A | DTMF tone for key A: 1633Hz, 697Hz, continuous | |||||||||
int | TONE_DTMF_B | DTMF tone for key B: 1633Hz, 770Hz, continuous | |||||||||
int | TONE_DTMF_C | DTMF tone for key C: 1633Hz, 852Hz, continuous | |||||||||
int | TONE_DTMF_D | DTMF tone for key D: 1633Hz, 941Hz, continuous | |||||||||
int | TONE_DTMF_P | DTMF tone for key #: 1477Hz, 941Hz, continuous | |||||||||
int | TONE_DTMF_S | DTMF tone for key *: 1209Hz, 941Hz, continuous | |||||||||
int | TONE_PROP_ACK | Proprietary tone, positive acknowlegement: 1200Hz, 100ms ON, 100ms OFF 2 bursts | |||||||||
int | TONE_PROP_BEEP | Proprietary tone, general beep: 400Hz+1200Hz, 35ms ON | |||||||||
int | TONE_PROP_BEEP2 | Proprietary tone, general double beep: twice 400Hz+1200Hz, 35ms ON, 200ms OFF, 35ms ON | |||||||||
int | TONE_PROP_NACK | Proprietary tone, negative acknowlegement: 300Hz+400Hz+500Hz, 400ms ON | |||||||||
int | TONE_PROP_PROMPT | Proprietary tone, prompt tone: 400Hz+1200Hz, 200ms ON | |||||||||
int | TONE_SUP_BUSY | Call supervisory tone, Busy: CEPT: 425Hz, 500ms ON, 500ms OFF... | |||||||||
int | TONE_SUP_CALL_WAITING | Call supervisory tone, Call Waiting: CEPT, JAPAN: 425Hz, 200ms ON, 600ms OFF, 200ms ON, 3s OFF... | |||||||||
int | TONE_SUP_CONFIRM | Call supervisory tone (IS-95), confirm tone: a 350 Hz tone added to a 440 Hz tone repeated 3 times in a 100 ms on, 100 ms off cycle | |||||||||
int | TONE_SUP_CONGESTION | Call supervisory tone, Congestion: CEPT, JAPAN: 425Hz, 200ms ON, 200ms OFF... | |||||||||
int | TONE_SUP_CONGESTION_ABBREV | Call supervisory tone (IS-95), abbreviated congestion: congestion tone limited to 4 seconds | |||||||||
int | TONE_SUP_DIAL | Call supervisory tone, Dial tone: CEPT: 425Hz, continuous ANSI (IS-95): 350Hz+440Hz, continuous JAPAN: 400Hz, continuous | |||||||||
int | TONE_SUP_ERROR | Call supervisory tone, Error/Special info: 950Hz+1400Hz+1800Hz, 330ms ON, 1s OFF... | |||||||||
int | TONE_SUP_INTERCEPT | Call supervisory tone (IS-95), intercept tone: alternating 440 Hz and 620 Hz tones, each on for 250 ms | |||||||||
int | TONE_SUP_INTERCEPT_ABBREV | Call supervisory tone (IS-95), abbreviated intercept: intercept tone limited to 4 seconds | |||||||||
int | TONE_SUP_PIP | Call supervisory tone (IS-95), pip tone: four bursts of 480 Hz tone (0.1 s on, 0.1 s off). | |||||||||
int | TONE_SUP_RADIO_ACK | Call supervisory tone, Radio path acknowlegment : CEPT, ANSI: 425Hz, 200ms ON JAPAN: 400Hz, 1s ON, 2s OFF... | |||||||||
int | TONE_SUP_RADIO_NOTAVAIL | Call supervisory tone, Radio path not available: 425Hz, 200ms ON, 200 OFF 3 bursts | |||||||||
int | TONE_SUP_RINGTONE | Call supervisory tone, Ring Tone: CEPT, JAPAN: 425Hz, 1s ON, 4s OFF... |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
ToneGenerator class contructor specifying output stream type and volume.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the audio session ID.
|
||||||||||
|
Releases resources associated with this ToneGenerator object.
|
||||||||||
|
This method starts the playback of a tone of the specified type for the specified duration.
|
||||||||||
|
This method starts the playback of a tone of the specified type.
|
||||||||||
|
This method stops the tone currently playing playback.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Maximum volume, for use with
ToneGenerator(int, int)
Minimum volume setting, for use with
ToneGenerator(int, int)
CDMA_ABBR_ALERT tone: 1150Hz+770Hz 400ms ON
CDMA Abbr Intercept tone: 440Hz 250ms ON, 620Hz 250ms ON
CDMA Abbr Reorder tone: 480Hz+620Hz 250ms ON, 250ms OFF repeated for 8 times
CDMA Alert Auto Redial tone: {1245Hz 62ms ON, 659Hz 62ms ON} 3 times, 1245 62ms ON
CDMA ALERT CALL GUARD tone: {1319Hz 125ms ON, 125ms OFF} 3 times
CDMA ALERT INCALL LITE tone: 587Hz 62ms, 784 62ms, 831Hz 62ms, 784Hz 62ms, 1109 62ms, 784Hz 62ms, 831Hz 62ms, 784Hz 62ms
CDMA Alert Network Lite tone: 1109Hz 62ms ON, 784Hz 62ms ON, 740Hz 62ms ON 622Hz 62ms ON, 1109Hz 62ms ON
CDMA answer tone: silent tone - defintion Frequency 0, 0ms ON, 0ms OFF
CDMA CALLDROP LITE tone: 1480Hz 125ms, 1397Hz 125ms, 784Hz 125ms
ISDN Call Signal Intergroup tone: {2091Hz 32ms ON, 2556 64ms ON} 8 times, 2091Hz 32ms ON, 400ms OFF, {2091Hz 32ms ON, 2556Hz 64ms ON} times, 2091Hz 32ms ON, 4s OFF.
ISDN Call Signal Normal tone: {2091Hz 32ms ON, 2556 64ms ON} 20 times, 2091 32ms ON, 2556 48ms ON, 4s OFF
ISDN Call sign PAT3 tone: silent tone
ISDN Ping Ring tone: {2091Hz 32ms ON, 2556Hz 64ms ON} 5 times 2091Hz 20ms ON
ISDN Call Signal SP PRI tone:{2091Hz 32ms ON, 2556 64ms ON} 4 times 2091Hz 16ms ON, 200ms OFF, {2091Hz 32ms ON, 2556Hz 64ms ON} 4 times, 2091Hz 16ms ON, 200ms OFF
CDMA Confirm tone: 350Hz+440Hz 100ms ON, 100ms OFF repeated for 3 times
CDMA EMERGENCY RINGBACK tone: {941Hz 125ms ON, 10ms OFF} 3times 4990ms OFF, REPEAT...
TONE_CDMA_HIGH_L tone: {3700Hz 25ms, 4000Hz 25ms} 40 times 4000ms OFF, Repeat ....
CDMA HIGH PBX L: {3700Hz 25ms, 4000Hz 25ms}20 times, 2000ms OFF, REPEAT....
CDMA HIGH PBX SSL tone:{3700Hz 25ms, 4000Hz 25ms} 8 times 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 16 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 8 times, 1000ms OFF, REPEAT....
CDMA HIGH PBX SS tone: {3700Hz 25ms, 4000Hz 25ms} 8 times 200 ms OFF, {3700Hz 25ms 4000Hz 25ms}8 times, 2000ms OFF, REPEAT....
CDMA HIGH PBX SSL tone:{3700Hz 25ms, 4000Hz 25ms} 8 times 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} 16 times, 1000ms OFF, REPEAT....
CDMA HIGH PBX X S4 tone: {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms 4000Hz 25ms} 8 times, 800ms OFF, REPEAT...
CDMA HIGH SLS tone: {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 20 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 3000ms OFF, REPEAT
CDMA HIGH SS tone: {3700Hz 25ms, 4000Hz 25ms} repeat 16 times, 400ms OFF, repeat ....
CDMA HIGH SSL tone: {3700Hz 25ms, 4000Hz 25ms} 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} repeat 8 times, 200ms OFF, {3700Hz 25ms, 4000Hz 25ms} repeat 16 times, 4000ms OFF, repeat ...
CDMA HIGH SS2 tone: {3700Hz 25ms, 4000Hz 25ms} 20 times, 1000ms OFF, {3700Hz 25ms, 4000Hz 25ms} 20 times, 3000ms OFF, repeat ....
CDMA HIGH S X4 tone: {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 500ms OFF, {3700Hz 25ms, 4000Hz 25ms} 10 times, 2500ms OFF, REPEAT....
CDMA Intercept tone: 440Hz 250ms ON, 620Hz 250ms ON ...
CDMA KEYPAD Volume key lite tone: 941Hz+1477Hz 120ms ON
TONE_CDMA_LOW_L tone: {1300Hz 25ms, 1450Hz 25ms} 40 times, 4000ms OFF, Repeat ....
CDMA LOW PBX L: {1300Hz 25ms,1450Hz 25ms}20 times, 2000ms OFF, REPEAT....
CDMA HIGH PBX SLS tone:{1300Hz 25ms, 1450Hz 25ms} 8 times 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 16 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 8 times, 1000ms OFF, REPEAT....
CDMA LOW PBX SS tone: {1300Hz 25ms, 1450Hz 25ms} 8 times 200 ms OFF, {1300Hz 25ms 1450Hz 25ms}8 times, 2000ms OFF, REPEAT....
CDMA LOW PBX SSL tone:{1300Hz 25ms, 1450Hz 25ms} 8 times 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} 16 times, 1000ms OFF, REPEAT....
CDMA LOW PBX X S4 tone: {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms 1450Hz 25ms} 8 times, 800ms OFF, REPEAT...
CDMA LOW SLS tone: {1300Hz 25ms, 1450Hz 25ms} 10 times, 500ms OFF, {1300Hz 25ms, 1450Hz 25ms} 20 times, 500ms OFF, {1300Hz 25ms, 1450Hz 25ms} 10 times, 3000ms OFF, REPEAT
CDMA LOW SS tone: {1300z 25ms, 1450Hz 25ms} repeat 16 times, 400ms OFF, repeat ....
CDMA LOW SSL tone: {1300Hz 25ms, 1450Hz 25ms} 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} repeat 8 times, 200ms OFF, {1300Hz 25ms, 1450Hz 25ms} repeat 16 times, 4000ms OFF, repeat ...
CDMA LOW SS2 tone: {1300Hz 25ms, 1450Hz 25ms} 20 times, 1000ms OFF, {1300Hz 25ms, 1450Hz 25ms} 20 times, 3000ms OFF, repeat ....
CDMA LOW S X4 tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 2500ms OFF, REPEAT....
TONE_CDMA_MED_L tone: {2600Hz 25ms, 2900Hz 25ms} 40 times 4000ms OFF, Repeat ....
CDMA MED PBX L: {2600Hz 25ms, 2900Hz 25ms}20 times, 2000ms OFF, REPEAT....
CDMA HIGH PBX SLS tone:{2600Hz 25ms, 2900Hz 25ms} 8 times 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 16 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 8 times, 1000ms OFF, REPEAT....
CDMA MED PBX SS tone: {2600Hz 25ms, 2900Hz 25ms} 8 times 200 ms OFF, {2600Hz 25ms 2900Hz 25ms}8 times, 2000ms OFF, REPEAT....
CDMA MED PBX SSL tone:{2600Hz 25ms, 2900Hz 25ms} 8 times 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} 16 times, 1000ms OFF, REPEAT....
CDMA MED PBX X S4 tone: {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms 2900Hz 25ms} 8 times, 800ms OFF, REPEAT...
CDMA MED SLS tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 20 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 3000ms OFF, REPEAT
CDMA MED SS tone: {2600Hz 25ms, 2900Hz 25ms} repeat 16 times, 400ms OFF, repeat ....
CDMA MED SSL tone: {2600Hz 25ms, 2900Hz 25ms} 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} repeat 8 times, 200ms OFF, {2600Hz 25ms, 2900Hz 25ms} repeat 16 times, 4000ms OFF, repeat ...
CDMA MED SS2 tone: {2600Hz 25ms, 2900Hz 25ms} 20 times, 1000ms OFF, {2600Hz 25ms, 2900Hz 25ms} 20 times, 3000ms OFF, repeat ....
CDMA MED S X4 tone: {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 500ms OFF, {2600Hz 25ms, 2900Hz 25ms} 10 times, 2500ms OFF, REPEAT....
CDMA Network Busy tone: 480Hz+620Hz 500ms ON, 500ms OFF continuous
CDMA_NETWORK_BUSY_ONE_SHOT tone: 425Hz 500ms ON, 500ms OFF.
CDMA Network Callwaiting tone: 440Hz 300ms ON
CDMA USA Ringback: 440Hz+480Hz 2s ON, 4000 OFF ...
CDMA One Min Beep tone: 1150Hz+770Hz 400ms ON
CDMA PIP tone: 480Hz 100ms ON, 100ms OFF repeated for 4 times
CDMA PRESSHOLDKEY LITE tone: 587Hz 375ms ON, 1175Hz 125ms ON
CDMA Reorder tone: 480Hz+620Hz 250ms ON, 250ms OFF...
CDMA SOFT ERROR LITE tone: 1047Hz 125ms ON, 370Hz 125ms
DTMF tone for key 0: 1336Hz, 941Hz, continuous
DTMF tone for key 1: 1209Hz, 697Hz, continuous
DTMF tone for key 2: 1336Hz, 697Hz, continuous
DTMF tone for key 3: 1477Hz, 697Hz, continuous
DTMF tone for key 4: 1209Hz, 770Hz, continuous
DTMF tone for key 5: 1336Hz, 770Hz, continuous
DTMF tone for key 6: 1477Hz, 770Hz, continuous
DTMF tone for key 7: 1209Hz, 852Hz, continuous
DTMF tone for key 8: 1336Hz, 852Hz, continuous
DTMF tone for key 9: 1477Hz, 852Hz, continuous
DTMF tone for key A: 1633Hz, 697Hz, continuous
DTMF tone for key B: 1633Hz, 770Hz, continuous
DTMF tone for key C: 1633Hz, 852Hz, continuous
DTMF tone for key D: 1633Hz, 941Hz, continuous
DTMF tone for key #: 1477Hz, 941Hz, continuous
DTMF tone for key *: 1209Hz, 941Hz, continuous
Proprietary tone, positive acknowlegement: 1200Hz, 100ms ON, 100ms OFF 2 bursts
Proprietary tone, general beep: 400Hz+1200Hz, 35ms ON
Proprietary tone, general double beep: twice 400Hz+1200Hz, 35ms ON, 200ms OFF, 35ms ON
Proprietary tone, negative acknowlegement: 300Hz+400Hz+500Hz, 400ms ON
Proprietary tone, prompt tone: 400Hz+1200Hz, 200ms ON
Call supervisory tone, Busy: CEPT: 425Hz, 500ms ON, 500ms OFF... ANSI (IS-95): 480Hz+620Hz, 500ms ON, 500ms OFF... JAPAN: 400Hz, 500ms ON, 500ms OFF...
Call supervisory tone, Call Waiting: CEPT, JAPAN: 425Hz, 200ms ON, 600ms OFF, 200ms ON, 3s OFF... ANSI (IS-95): 440 Hz, 300 ms ON, 9.7 s OFF, (100 ms ON, 100 ms OFF, 100 ms ON, 9.7s OFF ...)
Call supervisory tone (IS-95), confirm tone: a 350 Hz tone added to a 440 Hz tone repeated 3 times in a 100 ms on, 100 ms off cycle
Call supervisory tone, Congestion: CEPT, JAPAN: 425Hz, 200ms ON, 200ms OFF... ANSI (IS-95): 480Hz+620Hz, 250ms ON, 250ms OFF...
Call supervisory tone (IS-95), abbreviated congestion: congestion tone limited to 4 seconds
Call supervisory tone, Dial tone: CEPT: 425Hz, continuous ANSI (IS-95): 350Hz+440Hz, continuous JAPAN: 400Hz, continuous
Call supervisory tone, Error/Special info: 950Hz+1400Hz+1800Hz, 330ms ON, 1s OFF...
Call supervisory tone (IS-95), intercept tone: alternating 440 Hz and 620 Hz tones, each on for 250 ms
Call supervisory tone (IS-95), abbreviated intercept: intercept tone limited to 4 seconds
Call supervisory tone (IS-95), pip tone: four bursts of 480 Hz tone (0.1 s on, 0.1 s off).
Call supervisory tone, Radio path acknowlegment : CEPT, ANSI: 425Hz, 200ms ON JAPAN: 400Hz, 1s ON, 2s OFF...
Call supervisory tone, Radio path not available: 425Hz, 200ms ON, 200 OFF 3 bursts
Call supervisory tone, Ring Tone: CEPT, JAPAN: 425Hz, 1s ON, 4s OFF... ANSI (IS-95): 440Hz + 480Hz, 2s ON, 4s OFF...
ToneGenerator class contructor specifying output stream type and volume.
streamType | The streame type used for tone playback (e.g. STREAM_MUSIC). |
---|---|
volume | The volume of the tone, given in percentage of maximum volume (from 0-100). |
Returns the audio session ID.
Releases resources associated with this ToneGenerator object. It is good practice to call this method when you're done using the ToneGenerator.
This method starts the playback of a tone of the specified type for the specified duration.
toneType |
The type of tone generated @see
startTone(int)
.
|
---|---|
durationMs |
The tone duration in milliseconds. If the tone is limited in time by definition,
the actual duration will be the minimum of durationMs and the defined tone duration. Setting durationMs to -1,
is equivalent to calling
startTone(int)
.
|
This method starts the playback of a tone of the specified type. only one tone can play at a time: if a tone is playing while this method is called, this tone is stopped and replaced by the one requested.
This method stops the tone currently playing playback.
Invoked when the garbage collector has detected that this instance is no longer reachable. The default implementation does nothing, but this method can be overridden to free resources.
Note that objects that override
finalize
are significantly more expensive than
objects that don't. Finalizers may be run a long time after the object is no longer
reachable, depending on memory pressure, so it's a bad idea to rely on them for cleanup.
Note also that finalizers are run on a single VM-wide finalizer thread,
so doing blocking work in a finalizer is a bad idea. A finalizer is usually only necessary
for a class that has a native peer and needs to call a native method to destroy that peer.
Even then, it's better to provide an explicit
close
method (and implement
Closeable
), and insist that callers manually dispose of instances. This
works well for something like files, but less well for something like a
BigInteger
where typical calling code would have to deal with lots of temporaries. Unfortunately,
code that creates lots of temporaries is the worst kind of code from the point of view of
the single finalizer thread.
If you
must
use finalizers, consider at least providing your own
ReferenceQueue
and having your own thread process that queue.
Unlike constructors, finalizers are not automatically chained. You are responsible for
calling
super.finalize()
yourself.
Uncaught exceptions thrown by finalizers are ignored and do not terminate the finalizer thread. See Effective Java Item 7, "Avoid finalizers" for more.