]> git.proxmox.com Git - mirror_qemu.git/blobdiff - audio/wavcapture.c
hw/s390x/3270-ccw: avoid taking address of fields in packed struct
[mirror_qemu.git] / audio / wavcapture.c
index cd24570aa70c782d491244e03f77bbf2c3da1ad5..74320dfecc768ce7801f4d80298fff41dd5d53d0 100644 (file)
@@ -136,7 +136,7 @@ int wav_start_capture (CaptureState *s, const char *path, int freq,
 
     as.freq = freq;
     as.nchannels = 1 << stereo;
-    as.fmt = bits16 ? AUD_FMT_S16 : AUD_FMT_U8;
+    as.fmt = bits16 ? AUDIO_FORMAT_S16 : AUDIO_FORMAT_U8;
     as.endianness = 0;
 
     ops.notify = wav_notify;