diff options
author | David 'Digit' Turner <digit@google.com> | 2009-09-14 14:32:27 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-09-14 14:32:27 -0700 |
commit | 5d8f37ad78fc66901af50c762029a501561f3b23 (patch) | |
tree | 206790f8f21000850a98c4f9590a79e779106278 /audio/audio.h | |
parent | cd059b15f2c7df69f4a087bd66900eb172e41d1c (diff) | |
download | external_qemu-5d8f37ad78fc66901af50c762029a501561f3b23.zip external_qemu-5d8f37ad78fc66901af50c762029a501561f3b23.tar.gz external_qemu-5d8f37ad78fc66901af50c762029a501561f3b23.tar.bz2 |
Merge upstream QEMU 10.0.50 into the Android source tree.
This change integrates many changes from the upstream QEMU sources.
Its main purpose is to enable correct ARMv6 and ARMv7 support to the
Android emulator. Due to the nature of the upstream code base, this
unfortunately also required changes to many other parts of the source.
Note that to ensure easier integrations in the future, some source files
and directories that have heavy Android-specific customization have been
renamed with an -android suffix. The original files are still there for
easier integration tracking, but *never* compiled. For example:
net.c net-android.c
qemu-char.c qemu-char-android.c
slirp/ slirp-android/
etc...
Tested on linux-x86, darwin-x86 and windows host machines.
Diffstat (limited to 'audio/audio.h')
-rw-r--r-- | audio/audio.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/audio/audio.h b/audio/audio.h index 2c347bf..208a811 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -45,12 +45,12 @@ typedef enum { #define AUDIO_HOST_ENDIANNESS 0 #endif -typedef struct { +struct audsettings { int freq; int nchannels; audfmt_e fmt; int endianness; -} audsettings_t; +}; typedef enum { AUD_CNOTIFY_ENABLE, @@ -79,7 +79,6 @@ typedef struct CaptureVoiceOut CaptureVoiceOut; typedef struct SWVoiceIn SWVoiceIn; typedef struct QEMUSoundCard { - AudioState *audio; char *name; LIST_ENTRY (QEMUSoundCard) entries; } QEMUSoundCard; @@ -95,15 +94,11 @@ void AUD_log (const char *cap, const char *fmt, ...) #endif ; -extern AudioState glob_audio_state; - -AudioState *AUD_init (void); void AUD_help (void); -void AUD_register_card (AudioState *s, const char *name, QEMUSoundCard *card); +void AUD_register_card (const char *name, QEMUSoundCard *card); void AUD_remove_card (QEMUSoundCard *card); CaptureVoiceOut *AUD_add_capture ( - AudioState *s, - audsettings_t *as, + struct audsettings *as, struct audio_capture_ops *ops, void *opaque ); @@ -115,7 +110,7 @@ SWVoiceOut *AUD_open_out ( const char *name, void *callback_opaque, audio_callback_fn_t callback_fn, - audsettings_t *settings + struct audsettings *settings ); void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw); @@ -136,7 +131,7 @@ SWVoiceIn *AUD_open_in ( const char *name, void *callback_opaque, audio_callback_fn_t callback_fn, - audsettings_t *settings + struct audsettings *settings ); void AUD_close_in (QEMUSoundCard *card, SWVoiceIn *sw); @@ -173,6 +168,9 @@ uint32_t lsbindex (uint32_t u); #define audio_MAX(a, b) ((a)<(b)?(b):(a)) #endif +int wav_start_capture (CaptureState *s, const char *path, int freq, + int bits, int nchannels); + extern int audio_get_backend_count( int is_input ); |