diff options
| author | bellard | 2005-11-05 19:55:28 +0100 |
|---|---|---|
| committer | bellard | 2005-11-05 19:55:28 +0100 |
| commit | c0fe3827ea18f7d29550f2ff2495cec2fe7a3d94 (patch) | |
| tree | 2a9572602c93a5424a488929b56f29ac610a1641 /audio/mixeng.c | |
| parent | same PCI parameters as PIIX3 (diff) | |
| download | qemu-c0fe3827ea18f7d29550f2ff2495cec2fe7a3d94.tar.gz qemu-c0fe3827ea18f7d29550f2ff2495cec2fe7a3d94.tar.xz qemu-c0fe3827ea18f7d29550f2ff2495cec2fe7a3d94.zip | |
audio merge (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1601 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/mixeng.c')
| -rw-r--r-- | audio/mixeng.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/mixeng.c b/audio/mixeng.c index d43c5e59d7..14e37ae16f 100644 --- a/audio/mixeng.c +++ b/audio/mixeng.c @@ -228,21 +228,22 @@ f_sample *mixeng_clip[2][2][2][2] = { */ /* Private data */ -typedef struct ratestuff { +struct rate { uint64_t opos; uint64_t opos_inc; uint32_t ipos; /* position in the input stream (integer) */ st_sample_t ilast; /* last sample in the input stream */ -} *rate_t; +}; /* * Prepare processing. */ void *st_rate_start (int inrate, int outrate) { - rate_t rate = (rate_t) qemu_mallocz (sizeof (struct ratestuff)); + struct rate *rate = audio_calloc (AUDIO_FUNC, 1, sizeof (*rate)); if (!rate) { + dolog ("Could not allocate resampler (%d bytes)\n", sizeof (*rate)); return NULL; } |
