audio.h (683550488717333fed4295f5f994328196c7bf3e) audio.h (85bc58520c0e43660cbbe51b9eb5022a0baafe9f)
1/*
2 * QEMU Audio subsystem header
3 *
4 * Copyright (c) 2003-2005 Vassili Karpov (malc)
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 12 unchanged lines hidden (view full) ---

21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25#ifndef QEMU_AUDIO_H
26#define QEMU_AUDIO_H
27
28#include "qemu/queue.h"
1/*
2 * QEMU Audio subsystem header
3 *
4 * Copyright (c) 2003-2005 Vassili Karpov (malc)
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 12 unchanged lines hidden (view full) ---

21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25#ifndef QEMU_AUDIO_H
26#define QEMU_AUDIO_H
27
28#include "qemu/queue.h"
29#include "qapi/qapi-types-audio.h"
29
30typedef void (*audio_callback_fn) (void *opaque, int avail);
31
30
31typedef void (*audio_callback_fn) (void *opaque, int avail);
32
32typedef enum {
33 AUD_FMT_U8,
34 AUD_FMT_S8,
35 AUD_FMT_U16,
36 AUD_FMT_S16,
37 AUD_FMT_U32,
38 AUD_FMT_S32
39} audfmt_e;
40
41#ifdef HOST_WORDS_BIGENDIAN
42#define AUDIO_HOST_ENDIANNESS 1
43#else
44#define AUDIO_HOST_ENDIANNESS 0
45#endif
46
47struct audsettings {
48 int freq;
49 int nchannels;
33#ifdef HOST_WORDS_BIGENDIAN
34#define AUDIO_HOST_ENDIANNESS 1
35#else
36#define AUDIO_HOST_ENDIANNESS 0
37#endif
38
39struct audsettings {
40 int freq;
41 int nchannels;
50 audfmt_e fmt;
42 AudioFormat fmt;
51 int endianness;
52};
53
54typedef enum {
55 AUD_CNOTIFY_ENABLE,
56 AUD_CNOTIFY_DISABLE
57} audcnotification_e;
58

--- 116 unchanged lines hidden ---
43 int endianness;
44};
45
46typedef enum {
47 AUD_CNOTIFY_ENABLE,
48 AUD_CNOTIFY_DISABLE
49} audcnotification_e;
50

--- 116 unchanged lines hidden ---