From ca9cc28c62a2c2877186569f4ab0cf1034502a73 Mon Sep 17 00:00:00 2001 From: balrog Date: Mon, 14 Jan 2008 04:24:29 +0000 Subject: pthreads-based audio and miscellaneous audio clean-up (malc). ESD support (malc, Frederick Reeve). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3917 c046a42c-6fe2-441c-8c8c-71466251a162 --- audio/audio_pt_int.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 audio/audio_pt_int.h (limited to 'audio/audio_pt_int.h') diff --git a/audio/audio_pt_int.h b/audio/audio_pt_int.h new file mode 100644 index 0000000000..0dfff76aa3 --- /dev/null +++ b/audio/audio_pt_int.h @@ -0,0 +1,22 @@ +#ifndef QEMU_AUDIO_PT_INT_H +#define QEMU_AUDIO_PT_INT_H + +#include + +struct audio_pt { + const char *drv; + pthread_t thread; + pthread_cond_t cond; + pthread_mutex_t mutex; +}; + +int audio_pt_init (struct audio_pt *, void *(*) (void *), void *, + const char *, const char *); +int audio_pt_fini (struct audio_pt *, const char *); +int audio_pt_lock (struct audio_pt *, const char *); +int audio_pt_unlock (struct audio_pt *, const char *); +int audio_pt_wait (struct audio_pt *, const char *); +int audio_pt_unlock_and_signal (struct audio_pt *, const char *); +int audio_pt_join (struct audio_pt *, void **, const char *); + +#endif /* audio_pt_int.h */ -- cgit v1.2.1