| [Previous] [Next] [Contents] | ![]() |
CHAPTER 4. DEVELOPING APPLICATIONS
4.16 Sound Environment of MIZI Prizm 2.0 First of all, follow next Notification. [Note] Please do not access /dev/dsp directly for audio output, instead use
esd(esound).
If you need to play repeatedly, handle it by taking "stopped (const QString &) signal" of MzAudioManager.
Unavoidably, if you need to access /dev/dsp directly, follow the following
restrictions. 1. Volume Audio Out Audio In
2. Esound
3. Manner mode
1) In case of manner mode, audio output is disabled.
A. Sound policy of MIZI Prizm 2.0
MIZI Prizm 2.0 has used esound v0.2.29 for sound server, which is open source sound server. (ftp://ftp.gnome.org/pub/GNOME/sources/esound/0.2/) Basic operation of Esound is that esound mixes all the sounds and then it outputs the sound. But there are various additional requirements to esound. So MIZI Research
expands the functions. Functions related to audio path, priority, and
etc. are added. SCH-i519 terminal has three output devices, which are speaker, receiver, and earphone. And those have to be set differently according to phone mode and PDA mode. Phone mode and PDA mode are distinguished by phone state. Among those, the case of earphone is that earphone is inserted at ear jack. This case is processed by Kernel, sound leaking can be occurred during changing audio path. MIZI Prizm 2.0 defines five states at advance and uses those. PDA_MODE PHONE_MODE SPEAKERPHONE_MODE PDAPHONE_MODE SPEAKERWITHEAR_MODE
Basic aim of manner mode is to prevent sound from outputting through speaker. But, differently with mixer mute, it has following specificities and requirement. - Cancel manner mode when phone on/off At the first, we implement manner mode as mixer mute. But, various situations are occurred which control volume, and the situations make manner mode cancel, we modify manner mode can be controlled separately. Current implementation state is that priority of sound server is leveled up to –2, so output of other sounds are blocked. Only when camera shutter sound is played, the sound is forced to up priority to –2, so the sound can be played without regard to manner mode. Audio priority is derived to set audio policy in various situations. Audio policy which is adopted by SCH-i519 is as following. 1. Sounds that follow Priority Camera shutter sound (priority: 0) > Ring sound (priority: 1) > SMS alarm sound (priority: 2) > System alarm sound (priority: 3) > normal sound (priority: 5) And, there is requirement that the sound excluding normal sound should be outputted through speaker without regard to earphone mode. So, in case that priority isn’t same with normal sounds’, audio path is always set to SPEAKERWITHEAR_MODE. 2. Sounds that are always played regardless of Priority In actual implementation, priority is set to –1, so the sound always can be played regardless of priority of general sounds. 3. Sounds that are always played regardless of situation such
as Priority, audio device, etc. In implementation, camera shutter sound is specially controlled separately.
The reason is that the sound has to be played in various situations.
|
| [Previous] [Next] [Contents] | MIZI Prizm 2.0.0 |