~ubuntu-branches/ubuntu/oneiric/xmp/oneiric

« back to all changes in this revision

Viewing changes to src/loaders/amf_load.c

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-01-15 01:15:22 UTC
  • mfrom: (1.1.8 upstream) (4.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100115011522-r4otlsg687ee1yx4
Tags: 3.0.0+20090923-1ubuntu1
* Merge from debian testing (LP: #507732).  Reamining changes:
  + Add PulseAudio support:
    - debian/rules: Add --enable-pulseaudio to ./configure
  + RFE Compile with 128 bit mixer:
    - dpatch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
struct xmp_loader_info amf_loader = {
29
29
        "AMF",
30
 
        "DSMI (DMP)",
 
30
        "DSMI Advanced Module Format",
31
31
        amf_test,
32
32
        amf_load
33
33
};
68
68
 
69
69
        fread(buf, 1, 32, f);
70
70
        strncpy(m->name, (char *)buf, 32);
71
 
        sprintf(m->type, "DSMI %d.%d (DMP)", ver / 10, ver % 10);
 
71
        sprintf(m->type, "DSMI %d.%d", ver / 10, ver % 10);
72
72
 
73
73
        m->xxh->ins = read8(f);
74
74
        m->xxh->len = read8(f);
374
374
 
375
375
        /* Samples */
376
376
 
377
 
        if (V(0)) report ("Stored samples : %d ", m->xxh->smp);
 
377
        reportv(ctx, 0, "Stored samples : %d ", m->xxh->smp);
378
378
 
379
379
        for (i = 0; i < m->xxh->ins; i++) {
380
380
                xmp_drv_loadpatch(ctx, f, m->xxi[i][0].sid, m->c4rate,
383
383
        }
384
384
        reportv(ctx, 0, "\n");
385
385
 
386
 
        m->fetch |= XMP_CTL_FINEFX;
 
386
        m->quirk |= XMP_QRK_FINEFX;
387
387
 
388
388
        return 0;
389
389
}