Motorola SYMBOL MINISCAN MSXX04 Guía de usuario Pagina 237

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 278
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 236
Chapter 19: Wireless Wide-Area Networking
Audio for Voice Over WWAN
225
Psion Mobile Devices Developers Guide
19.13.13 Audio for Voice Over WWAN
Playing A Ring Tone
Use PlayRepeatingWave, in the Sound namespace, to play a repeating tone. This is shown in the
following example:
Use StopRepeatingWave to stop playing the tone. This is shown in this example:
Setting the Speaker Volume
Use SetSpeakerVolume to control the volume of the speaker on the computer. 0 (zero) is the minimum
volume of the speaker on the computer, and 100 is the maximum volume of the speaker. The sound level is
hardware dependent; on different Psion computers the same setting gives different apparent sound levels.
Zero volume does not turn the speaker off; it is the lowest sound level available.
The volume can take one of the following values: 0, 20, 40, 60, 80, 100. Setting any other value results in
rounding to the nearest valid value.
In order to set the speaker volume, there must be an active call when the volume is set.
Configuring the Microphone
At this time (April 2008), the only available microphone operation is muting.
Muting the Microphone
Use SetMicrophoneMute to mute the microphone on the computer. When mute is enabled, the other
parties cannot hear you even if the call is in the active state: You can still hear the other parties.
Use GetMicrophoneMute to check the mote status of the microphone.
In order to mute the microphone, there must be an active call when mute is set.
19.13.14 Voice Over WWAN Events
19.13.14.1 Voice Call Status Changed Event
A voice call status changed event is generated when one of the following changes for a voice call:
The voice call state. See Section 19.12.1 Voice Service States on page 215 for details.
The voice call flag.
Voice Call Flags
The voice call flags define the type of voice call.
Incoming
This is an incoming call. Another party initiated this voice call.
Conference
This call is part of a multiparty call. See Section Multiparty Calls (Conference Calls) on page 223.
try
{
// Play a ring tone to notify the user of an incoming call.
// From PsionTeklogix::Sound namespace.
PlayRepeatingWave(std::wstring(L"\\windows\\ring.wav"), 3000);
}
catch(std::runtime_error ex)
{
// Unable to play the ringtone, does the file exist?
}
// The user responded, don't need to play the ring tone any more.
// From the PsionTeklogix::Sound namespace.
StopRepeatingWave();
Vista de pagina 236
1 2 ... 232 233 234 235 236 237 238 239 240 241 242 ... 277 278

Comentarios a estos manuales

Sin comentarios