/[qemu]/qemu/audio/mixeng.c
ViewVC logotype

Diff of /qemu/audio/mixeng.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bellard, Sun Oct 30 18:58:22 2005 UTC revision 1.3 by bellard, Sat Nov 5 18:55:27 2005 UTC
# Line 228  f_sample *mixeng_clip[2][2][2][2] = { Line 228  f_sample *mixeng_clip[2][2][2][2] = {
228   */   */
229    
230  /* Private data */  /* Private data */
231  typedef struct ratestuff {  struct rate {
232      uint64_t opos;      uint64_t opos;
233      uint64_t opos_inc;      uint64_t opos_inc;
234      uint32_t ipos;              /* position in the input stream (integer) */      uint32_t ipos;              /* position in the input stream (integer) */
235      st_sample_t ilast;          /* last sample in the input stream */      st_sample_t ilast;          /* last sample in the input stream */
236  } *rate_t;  };
237    
238  /*  /*
239   * Prepare processing.   * Prepare processing.
240   */   */
241  void *st_rate_start (int inrate, int outrate)  void *st_rate_start (int inrate, int outrate)
242  {  {
243      rate_t rate = (rate_t) qemu_mallocz (sizeof (struct ratestuff));      struct rate *rate = audio_calloc (AUDIO_FUNC, 1, sizeof (*rate));
244    
245      if (!rate) {      if (!rate) {
246            dolog ("Could not allocate resampler (%d bytes)\n", sizeof (*rate));
247          return NULL;          return NULL;
248      }      }
249    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26