aboutsummaryrefslogtreecommitdiff
path: root/audio/wavcapture.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-05 21:31:46 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-05 21:31:46 +0000
commite70332b376ca6e7ca3357d8ce32b12c9a90da545 (patch)
treebf5904e2b6dfc011964eb4b4e38c8ccd4e6e55ad /audio/wavcapture.c
parentfaea38e7863a6e29f110063388eb93840fcd475c (diff)
downloadqemu-e70332b376ca6e7ca3357d8ce32b12c9a90da545.zip
qemu-e70332b376ca6e7ca3357d8ce32b12c9a90da545.tar.gz
qemu-e70332b376ca6e7ca3357d8ce32b12c9a90da545.tar.bz2
use QEMUFile API
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2087 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r--audio/wavcapture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c
index 0f6f7bf..d1a6f7b 100644
--- a/audio/wavcapture.c
+++ b/audio/wavcapture.c
@@ -46,7 +46,7 @@ static void wav_destroy (void *opaque)
qemu_fseek (wav->f, 32, SEEK_CUR);
qemu_put_buffer (wav->f, dlen, 4);
- fclose (wav->f);
+ qemu_fclose (wav->f);
if (wav->path) {
qemu_free (wav->path);
}
@@ -135,7 +135,7 @@ int wav_start_capture (CaptureState *s, const char *path, int freq,
le_store (hdr + 28, freq << shift, 4);
le_store (hdr + 32, 1 << shift, 2);
- wav->f = fopen (path, "wb");
+ wav->f = qemu_fopen (path, "wb");
if (!wav->f) {
term_printf ("Failed to open wave file `%s'\nReason: %s\n",
path, strerror (errno));