aboutsummaryrefslogtreecommitdiffstats
path: root/android/build
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-08-21 03:05:29 +0200
committerDavid 'Digit' Turner <digit@google.com>2009-08-21 03:05:29 +0200
commit5ad9febb1c7e08fe24413f9bd04f30d92b4cfa3a (patch)
tree97cb688ef7727ee37a721596eee3af9b8c98d0cc /android/build
parente4c5bfae9beeb0bbb0e525e4700ae4be9971676f (diff)
downloadexternal_qemu-5ad9febb1c7e08fe24413f9bd04f30d92b4cfa3a.zip
external_qemu-5ad9febb1c7e08fe24413f9bd04f30d92b4cfa3a.tar.gz
external_qemu-5ad9febb1c7e08fe24413f9bd04f30d92b4cfa3a.tar.bz2
Fix EsounD audio backend and bump version number.
The original esdaudio.c file from upstream contains a nasty race condition that can be triggered when the emulator exists while the audio record thread is in a blocking read() call. In this case, exit() will end up calling esd_fini_in which will try to pthread_join() the blocked thread, resulting in a dead-lock. This change just gets rid of the helper threads and just performs audio output and input in the main event loop, avoiding blocking i/o completely. I haven't experienced any difference compared to the original one, be it in audio lag or CPU usage when playing a simple MP3 file in the emulated system. The change also updates the update-audio.sh script since we don't store our sources in p4 anymore. A small fix in common.sh deals removes an obsolete special case that is not needed anymore when determining the location of the host prebuilt binaries. The version number is also bumped to 1.12 and CHANGES.TXT updated accordingly.
Diffstat (limited to 'android/build')
-rw-r--r--android/build/common.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/android/build/common.sh b/android/build/common.sh
index b22ef7d..3f2c642 100644
--- a/android/build/common.sh
+++ b/android/build/common.sh
@@ -444,18 +444,6 @@ locate_android_prebuilt ()
{
# locate prebuilt directory
ANDROID_PREBUILT_HOST_TAG=$OS
- case $OS in
- linux-*)
- # Linux is a special case because in the old tree layout
- # we simply used 'Linux' as the prebuilt host tag, but
- # are now using "linux-x86" in the new layout
- # check which one should be used
- #
- if [ -d $ANDROID_TOP/prebuilt/Linux ] ; then
- PREBUILT_HOST_TAG=Linux
- fi
- ;;
- esac
ANDROID_PREBUILT=$ANDROID_TOP/prebuilt/$ANDROID_PREBUILT_HOST_TAG
if [ ! -d $ANDROID_PREBUILT ] ; then
# this can happen when building on x86_64