Eric Laurent cfb25d1036 Fix issue 3158317.
Do not open the input device when opening the input stream but
only when the input stream starts. This avoids blocking the thread
executing openInputStream() on the pcm input driver mutex while this mutex
is constantly acquired and released by the high priority audio
input thread.

It also allows an app to open an input stream while another thread is recording
if it does not use it immediately (useful for voice search and VoIP).

Also did some clean up in output and input stream standby logic.

Change-Id: I69c82f5833f7a034d828001f87e02745d7683b65
2010-11-19 09:13:34 -08:00
2010-07-01 21:19:31 -07:00
Description
No description provided
1.3 MiB
Languages
C++ 90.2%
Objective-C 4.6%
C 2.8%
Makefile 2.4%