~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to midi.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//=========================================================
2
2
//  MusE
3
3
//  Linux Music Editor
4
 
//  $Id: midi.h,v 1.2 2001/11/20 15:19:31 muse Exp $
 
4
//  $Id: midi.h,v 1.2 2003/11/12 12:34:58 wschweer Exp $
5
5
//
6
6
//  (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
7
7
//=========================================================
63
63
      bool writeTrack(MidiTrack*);
64
64
      int getvl();
65
65
      void putvl(unsigned);
66
 
      void writeEvent(MidiEvent*);
 
66
      void writeEvent(int channel, MidiEvent*);
67
67
      bool checkSysex(MidiTrack*, unsigned int len, unsigned char* buf);
68
68
      void addKaraoke(MidiTrack* track);
69
69
      };
70
70
 
71
71
#define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
72
 
#ifdef __i486__
 
72
#ifdef i386
73
73
#define XCHG_LONG(x) \
74
74
     ({ int __value; \
75
75
        asm ("bswap %1; movl %1,%0" : "=g" (__value) : "r" (x)); \
81
81
                      (((x)>>24)&0xFF))
82
82
#endif
83
83
 
84
 
#define LE_SHORT(x) x
85
 
#define LE_LONG(x) x
 
84
#if __BYTE_ORDER == __LITTLE_ENDIAN
86
85
#define BE_SHORT(x) XCHG_SHORT(x)
87
86
#define BE_LONG(x) XCHG_LONG(x)
88
 
 
 
87
#else
 
88
#define BE_SHORT(x) x
 
89
#define BE_LONG(x) x
 
90
#endif
89
91
 
90
92
#define ME_SYSEX        0xf0
91
93
#define ME_META         0xff