[Gpephone-devel] functions of sound server

Zhao Shichang zhaoshichang at longcheertel.com
Mon Feb 12 08:33:15 CET 2007


>>-----Original Message-----
>>From: Zhao Shichang [mailto:zhaoshichang at longcheertel.com]
>>Sent: 2007年2月12日 11:46
>>To: YU Yijun RD-ILAB-PEK; gpephone-devel at linuxtogo.org
>>Subject: Re: Re: [Gpephone-devel] functions of sound server
>>
>>>
>>>
>>>>>>Hi,everyone!
>>>>>>
>>>>>>I have two questions:
>>>>>>1, Does the sound server control audio device in phone call mode or
>>>audio
>>>>>playback
>>>>>>mode, and control when switch between the two state?
>>>>>>
>>>>>>2, Do audio playbacks have priority in sound server? For example,
>>>while playing
>>>>>>music using media player, there comes a phone call, so it must pause
>>>the music
>>>>>>and  play a ringtone.
>>>>>
>>>Hi,
>>>Sound server keeps exclusive control to audio device and mix sounds up
>>>from different sources.
>>>
>>>When there is a ringtone and a music playing at the same time, sound
>>>server doesn't stop either of them but simply mix them and play together
>>>with higher ringtone's volume and lower music's volume.
>>>
>>>Does it answer your question?
>>>
>>>
>>>>
>>>>Does that answer your question?
>>>>
>>>>Regards
>>>>Yijun
>>>
>>
>>Thanks!
>>What happens when there comes a phone call,or user estiblish a call while playing
>>music?
>>Normally, music playing will be paused( or just mute?).
>>
>Currently, sound server just mixes them up.
>We may use other mechanism to pause the music player. Say music player will register an incoming call event and once it receives this event, it will pause itself.
>
>There is no such mechanism in the current edition and we welcome suggestions & contributions.
>
>Regards
>Yu Yijun

Two ways I think:
1, pause music playing
  sound server should send messages to all playing processes to pause. perhaps it will cause a long delay, and make applications that want to play music more complicated.

2, mute all music
  it's application transparent. sound server should have a timer to process audio buffers periodically.  perhaps it wasts too much resources. 

Any better suggestions?			

REGARDS
littertiger


More information about the Gpephone-devel mailing list