speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Reopen libao device handles when audio parameters change.


From: Andrei Kholodnyi
Subject: [PATCH] Reopen libao device handles when audio parameters change.
Date: Thu, 2 Sep 2010 11:41:31 +0200

>> As for resampling, if the audio system can do resampling, it is definitely
>> its task, not ours. The audio system needs to resample all incomming data
>> to a common frequency anyway for the purpose of mixing them together.
>
> Exactly. ?All of the supported backends can resample, so I don't see
> much point in writing code to do that. ?I suppose one concern is that
> we'll have some inefficiency, because we are closing and reopening the
> audio device for every sound icon.

I'm still not clear on it.
if we have <speech>,<icon>,<speech>
we are just sending to audio something like
<sampling A>,<sampling B>,<sampling A>

TTS which supports icons will always send
<sampling A>,<sampling A>,<sampling A>
since it will resample it.

now, is it a way to say audio system, please resample <sampling B> to
<sampling A>
instead of just reinit audio backend with the sampling B params?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]