Revision d929eba5 audio/audio.h

b/audio/audio.h
24 24
#ifndef QEMU_AUDIO_H
25 25
#define QEMU_AUDIO_H
26 26

  
27
#include "config.h"
27 28
#include "sys-queue.h"
28 29

  
29 30
typedef void (*audio_callback_fn_t) (void *opaque, int avail);
......
35 36
    AUD_FMT_S16
36 37
} audfmt_e;
37 38

  
39
#ifdef WORDS_BIGENDIAN
40
#define AUDIO_HOST_ENDIANNESS 1
41
#else
42
#define AUDIO_HOST_ENDIANNESS 0
43
#endif
44

  
38 45
typedef struct {
39 46
    int freq;
40 47
    int nchannels;
41 48
    audfmt_e fmt;
49
    int endianness;
42 50
} audsettings_t;
43 51

  
44 52
struct audio_capture_ops {
......
74 82
int AUD_add_capture (
75 83
    AudioState *s,
76 84
    audsettings_t *as,
77
    int endian,
78 85
    struct audio_capture_ops *ops,
79 86
    void *opaque
80 87
    );
......
85 92
    const char *name,
86 93
    void *callback_opaque,
87 94
    audio_callback_fn_t callback_fn,
88
    audsettings_t *settings,
89
    int sw_endian
95
    audsettings_t *settings
90 96
    );
91 97

  
92 98
void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw);
......
104 110
    const char *name,
105 111
    void *callback_opaque,
106 112
    audio_callback_fn_t callback_fn,
107
    audsettings_t *settings,
108
    int sw_endian
113
    audsettings_t *settings
109 114
    );
110 115

  
111 116
void AUD_close_in (QEMUSoundCard *card, SWVoiceIn *sw);

Also available in: Unified diff