wavcapture.c (0d3e41d5efd638a0c5682f6813b26448c3c51624) wavcapture.c (85bc58520c0e43660cbbe51b9eb5022a0baafe9f)
1#include "qemu/osdep.h"
2#include "hw/hw.h"
3#include "monitor/monitor.h"
4#include "qapi/error.h"
5#include "qemu/error-report.h"
6#include "audio.h"
7
8typedef struct {

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

131 return -1;
132 }
133
134 stereo = nchannels == 2;
135 bits16 = bits == 16;
136
137 as.freq = freq;
138 as.nchannels = 1 << stereo;
1#include "qemu/osdep.h"
2#include "hw/hw.h"
3#include "monitor/monitor.h"
4#include "qapi/error.h"
5#include "qemu/error-report.h"
6#include "audio.h"
7
8typedef struct {

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

131 return -1;
132 }
133
134 stereo = nchannels == 2;
135 bits16 = bits == 16;
136
137 as.freq = freq;
138 as.nchannels = 1 << stereo;
139 as.fmt = bits16 ? AUD_FMT_S16 : AUD_FMT_U8;
139 as.fmt = bits16 ? AUDIO_FORMAT_S16 : AUDIO_FORMAT_U8;
140 as.endianness = 0;
141
142 ops.notify = wav_notify;
143 ops.capture = wav_capture;
144 ops.destroy = wav_destroy;
145
146 wav = g_malloc0 (sizeof (*wav));
147

--- 45 unchanged lines hidden ---
140 as.endianness = 0;
141
142 ops.notify = wav_notify;
143 ops.capture = wav_capture;
144 ops.destroy = wav_destroy;
145
146 wav = g_malloc0 (sizeof (*wav));
147

--- 45 unchanged lines hidden ---