~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/midifile.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.1.12) (10.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120718160706-qy1lydijykeiqqmg
Tags: 2.0-1
* New stable release.
* debian/rules: Exclude muse/widgets/arrangercolumns.{cpp,h}~ from being
  deleted by dh_clean.
* Drop 0002-gcc_hardening.patch, applied upstream.
* Drop 0003-ftbfs_gcc47.patch, applied upstream.
* Refresh 1001-buildsystem.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
//=========================================================
23
23
 
24
24
#include <errno.h>
25
 
#include <values.h>
26
25
 
27
26
#include "song.h"
28
27
#include "midi.h"
340
339
                        return -2;
341
340
                        }
342
341
                  if (buffer[len-1] != 0xf7) {
343
 
                        printf("SYSEX endet nicht mit 0xf7!\n");
344
 
                        // Fortsetzung folgt?
 
342
                        printf("SYSEX doesn't end with 0xf7!\n");
 
343
                        // to be continued?
345
344
                        }
346
345
                  else
347
346
                        --len;      // don't count 0xf7
566
565
      int c     = event->channel();
567
566
      int nstat = event->type();
568
567
 
569
 
      // we dont save meta data into smf type 0 files:
 
568
      // we dont save meta data into smf type 0 files: DELETETHIS 4 ???
570
569
      // Oct 16, 2011: Apparently it is legal to do that. Part of fix for bug tracker 3293339.
571
570
      //if (MusEGlobal::config.smfFormat == 0 && nstat == ME_META)
572
571
      //      return;
620
619
      writeLong(6);                 // header len
621
620
      writeShort(MusEGlobal::config.smfFormat);
622
621
      if (MusEGlobal::config.smfFormat == 0) {
 
622
            // DELETETHIS 30
623
623
            /*
624
624
            //writeShort(1);    // Removed. Bug tracker 3293339
625
625
            MidiFileTrack dst;
645
645
            */
646
646
            
647
647
            writeShort(1);
648
 
            //writeShort(_division);
 
648
            //writeShort(_division); DELETETHIS 3
649
649
            //if(!_tracks->empty())
650
650
            //  writeTrack(*(_tracks->begin()));
651
651
            
658
658
            writeShort(_division);
659
659
            for (ciMidiFileTrack i = _tracks->begin(); i != _tracks->end(); ++i)
660
660
                  writeTrack(*i);
661
 
///      }
 
661
 
662
662
      return (ferror(fp) != 0);
663
663
      }
664
664