~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to audio/audio.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#define AUDIO_HOST_ENDIANNESS 0
45
45
#endif
46
46
 
47
 
typedef struct {
 
47
struct audsettings {
48
48
    int freq;
49
49
    int nchannels;
50
50
    audfmt_e fmt;
51
51
    int endianness;
52
 
} audsettings_t;
 
52
};
53
53
 
54
54
typedef enum {
55
55
    AUD_CNOTIFY_ENABLE,
100
100
void AUD_remove_card (QEMUSoundCard *card);
101
101
CaptureVoiceOut *AUD_add_capture (
102
102
    AudioState *s,
103
 
    audsettings_t *as,
 
103
    struct audsettings *as,
104
104
    struct audio_capture_ops *ops,
105
105
    void *opaque
106
106
    );
112
112
    const char *name,
113
113
    void *callback_opaque,
114
114
    audio_callback_fn_t callback_fn,
115
 
    audsettings_t *settings
 
115
    struct audsettings *settings
116
116
    );
117
117
 
118
118
void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw);
124
124
void     AUD_init_time_stamp_out (SWVoiceOut *sw, QEMUAudioTimeStamp *ts);
125
125
uint64_t AUD_get_elapsed_usec_out (SWVoiceOut *sw, QEMUAudioTimeStamp *ts);
126
126
 
 
127
void AUD_set_volume_out (SWVoiceOut *sw, int mute, uint8_t lvol, uint8_t rvol);
 
128
void AUD_set_volume_in (SWVoiceIn *sw, int mute, uint8_t lvol, uint8_t rvol);
 
129
 
127
130
SWVoiceIn *AUD_open_in (
128
131
    QEMUSoundCard *card,
129
132
    SWVoiceIn *sw,
130
133
    const char *name,
131
134
    void *callback_opaque,
132
135
    audio_callback_fn_t callback_fn,
133
 
    audsettings_t *settings
 
136
    struct audsettings *settings
134
137
    );
135
138
 
136
139
void AUD_close_in (QEMUSoundCard *card, SWVoiceIn *sw);
167
170
#define audio_MAX(a, b) ((a)<(b)?(b):(a))
168
171
#endif
169
172
 
 
173
int wav_start_capture (CaptureState *s, const char *path, int freq,
 
174
                       int bits, int nchannels);
 
175
 
170
176
#endif  /* audio.h */