Revision d929eba5 audio/wavcapture.c

b/audio/wavcapture.c
70 70
    as.freq = freq;
71 71
    as.nchannels = 1 << stereo;
72 72
    as.fmt = bits16 ? AUD_FMT_S16 : AUD_FMT_U8;
73
    as.endianness = 0;
73 74

  
74 75
    ops.state = wav_state_cb;
75 76
    ops.capture = wav_capture_cb;
......
97 98
    }
98 99

  
99 100
    qemu_put_buffer (wav->f, hdr, sizeof (hdr));
100
    AUD_add_capture (NULL, &as, 0, &ops, wav);
101
    AUD_add_capture (NULL, &as, &ops, wav);
101 102
}

Also available in: Unified diff