~ubuntu-branches/debian/stretch/bristol/stretch

« back to all changes in this revision

Viewing changes to bristol/audiothread.c

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-11-14 06:15:01 UTC
  • mfrom: (1.2.6) (6.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20111114061501-fralw11sxtl7n929
Tags: 0.60.9-1
* New upstream bugfix release.
* Depends on libjack-dev only.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 *  Diverse Bristol audio routines.
4
 
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2010
 
4
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2011
5
5
 *
6
6
 *
7
7
 *   This program is free software; you can redistribute it and/or modify
701
701
{
702
702
        int i, j;
703
703
        bristolOP *op;
 
704
        char name[256];
 
705
        float tmap[128];
704
706
 
705
707
        if (baudio == NULL)
706
708
                return;
878
880
                }
879
881
        }
880
882
 
881
 
        bristolMidiValueMappingTable(baudio->valuemap, baudio->midimap,
 
883
        /*
 
884
         * We give a NULL name in the engine: these are all GUI mappings but the
 
885
         * call will init the tables to defaults (linear).
 
886
         */
 
887
        bristolMidiValueMappingTable(baudio->valuemap, baudio->midimap, "null");
 
888
//              bristolAlgos[(audiomain->midiflags & BRISTOL_PARAMMASK)].name);
 
889
        /* We should do a getmap for the modwheel */
 
890
        sprintf(name, "%s.mcm",
882
891
                bristolAlgos[(audiomain->midiflags & BRISTOL_PARAMMASK)].name);
883
892
 
 
893
        if (bristolGetMap(name, "modWheel", tmap, 128, 0) > 0)
 
894
        {
 
895
                for (i = 0; i < 128; i++)
 
896
                        baudio->valuemap[1][i] = (int) tmap[i];
 
897
        }
 
898
 
884
899
        baudio->midi = bristolMidiController;
885
900
        baudio->mixflags &= ~BRISTOL_HOLDDOWN;
886
901
        baudio->lowkey = 0;