~ubuntu-branches/ubuntu/karmic/allegro4.2/karmic

« back to all changes in this revision

Viewing changes to src/macosx/qtmidi.m

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2008-03-03 11:28:56 UTC
  • mfrom: (1.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080303112856-4ds441er7nkn9th7
Tags: 2:4.2.2-2
* debian/control:
  + Add ${shlibs:Depends} to the liballegro4.2-dev dependencies.
  + Set policy to 3.7.3.

* debian/rules:
  + Ensure that packages built with liballegro 4.2.2 depend on liballegro
    >= 4.2.2 (Closes: #468081).

* debian/create_allegro-examples.pl:
  + Fix a "read without variable" bashism (Closes: #465134).

* debian/patches/005_no_unsharable.diff:
  + Remove extraneous libraries from allegro-config --libs output. Patch
    courtesy of Peter De Wachter (Closes: #462679).

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
static int osx_midi_detect(int input);
44
44
static int osx_midi_init(int input, int voices);
45
45
static void osx_midi_exit(int input);
46
 
static int osx_midi_mixer_volume(int volume);
 
46
static int osx_midi_set_mixer_volume(int volume);
47
47
static void osx_midi_key_on(int inst, int note, int bend, int vol, int pan);
48
48
static void osx_midi_key_off(int voice);
49
49
static void osx_midi_set_volume(int voice, int vol);
65
65
   osx_midi_detect,         /* AL_METHOD(int,  detect, (int input)); */
66
66
   osx_midi_init,           /* AL_METHOD(int,  init, (int input, int voices)); */
67
67
   osx_midi_exit,           /* AL_METHOD(void, exit, (int input)); */
68
 
   osx_midi_mixer_volume,   /* AL_METHOD(int,  mixer_volume, (int volume)); */
 
68
   osx_midi_set_mixer_volume,  /* AL_METHOD(int,  set_mixer_volume, (int volume)); */
 
69
   NULL,                       /* AL_METHOD(int,  get_mixer_volume, (void)); */
69
70
   NULL,                    /* AL_METHOD(void, raw_midi, (int data)); */
70
71
   _dummy_load_patches,     /* AL_METHOD(int,  load_patches, (AL_CONST char *patches, AL_CONST char *drums)); */
71
72
   _dummy_adjust_patches,   /* AL_METHOD(void, adjust_patches, (AL_CONST char *patches, AL_CONST char *drums)); */
124
125
      voice[i].vol = -1;
125
126
      voice[i].pan = -1;
126
127
      memset(&note_request, 0, sizeof(note_request));
127
 
      note_request.info.polyphony = 8;
128
 
      note_request.info.typicalPolyphony = 0x00010000;
 
128
      #if TARGET_RT_BIG_ENDIAN
 
129
        note_request.info.polyphony = 8;
 
130
        note_request.info.typicalPolyphony = 0x00010000;
 
131
      #else
 
132
        note_request.info.polyphony.bigEndianValue = EndianU16_NtoB(8);
 
133
        note_request.info.typicalPolyphony.bigEndianValue = EndianS32_NtoB(X2Fix(1.0));
 
134
      #endif
129
135
      result = NAStuffToneDescription(note_allocator, 1, &note_request.tone);
130
136
      result |= NANewNoteChannel(note_allocator, &note_request, &voice[i].channel);
131
137
      result |= NAResetNoteChannel(note_allocator, voice[i].channel);
168
174
 
169
175
 
170
176
 
171
 
/* osx_midi_mixer_volume:
 
177
/* osx_midi_set_mixer_volume:
172
178
 *  Sets QuickTime Music MIDI volume multiplier for all channels.
173
179
 */
174
 
static int osx_midi_mixer_volume(int volume)
 
180
static int osx_midi_set_mixer_volume(int volume)
175
181
{
176
182
   int i;
177
183