~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to audio/fmodaudio.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
    int src_len1 = dst_len;
143
143
    int src_len2 = 0;
144
144
    int pos = hw->rpos + dst_len;
145
 
    st_sample_t *src1 = hw->mix_buf + hw->rpos;
146
 
    st_sample_t *src2 = NULL;
 
145
    struct st_sample *src1 = hw->mix_buf + hw->rpos;
 
146
    struct st_sample *src2 = NULL;
147
147
 
148
148
    if (pos > hw->samples) {
149
149
        src_len1 = hw->samples - hw->rpos;
355
355
    }
356
356
}
357
357
 
358
 
static int fmod_init_out (HWVoiceOut *hw, audsettings_t *as)
 
358
static int fmod_init_out (HWVoiceOut *hw, struct audsettings *as)
359
359
{
360
360
    int bits16, mode, channel;
361
361
    FMODVoiceOut *fmd = (FMODVoiceOut *) hw;
362
 
    audsettings_t obt_as = *as;
 
362
    struct audsettings obt_as = *as;
363
363
 
364
364
    mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0);
365
365
    fmd->fmod_sample = FSOUND_Sample_Alloc (
417
417
    return 0;
418
418
}
419
419
 
420
 
static int fmod_init_in (HWVoiceIn *hw, audsettings_t *as)
 
420
static int fmod_init_in (HWVoiceIn *hw, struct audsettings *as)
421
421
{
422
422
    int bits16, mode;
423
423
    FMODVoiceIn *fmd = (FMODVoiceIn *) hw;
424
 
    audsettings_t obt_as = *as;
 
424
    struct audsettings obt_as = *as;
425
425
 
426
426
    if (conf.broken_adc) {
427
427
        return -1;
564
564
 
565
565
    if (drv) {
566
566
        int found = 0;
567
 
        for (i = 0; i < sizeof (drvtab) / sizeof (drvtab[0]); i++) {
 
567
        for (i = 0; i < ARRAY_SIZE (drvtab); i++) {
568
568
            if (!strcmp (drv, drvtab[i].name)) {
569
569
                output_type = drvtab[i].type;
570
570
                found = 1;
574
574
        if (!found) {
575
575
            dolog ("Unknown FMOD driver `%s'\n", drv);
576
576
            dolog ("Valid drivers:\n");
577
 
            for (i = 0; i < sizeof (drvtab) / sizeof (drvtab[0]); i++) {
 
577
            for (i = 0; i < ARRAY_SIZE (drvtab); i++) {
578
578
                dolog ("  %s\n", drvtab[i].name);
579
579
            }
580
580
        }