~ubuntu-branches/ubuntu/trusty/portmidi/trusty

« back to all changes in this revision

Viewing changes to pm_test/midithru.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2009-09-16 06:50:57 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090916065057-lz24lbrrygyev85b
Tags: 1:131-1
* New upstream version, uses epoch (closes: #501132)
* debian/watch: update to match new download location and version
  numbering (closes: #450055), but still fails due to zip format
* Add depends on quilt, move patches to debian/patches
* Add Homepage to debian/control
* debian/control: use ${binary:Version}, bump to S-V 3.8.3
* debian/compat: bump to 5
* debian/copyright: update to match license.txt and add missing copyrights
* debian/patches/02_pmlinuxalsa.diff: remove merged hunks
* debian/patches/04_ptlinux.diff: remove merged hunks
* debian/patches/05_makefile.diff: merge and link portmidi to porttime,
  thanks to Willem van Engen (closes: #515712)
* debian/rules: use pm_linux/Makefile, ship CHANGELOG.txt and make sure
  source and header files are not executable
* debian/README.source: refer to quilt documentation
* debian/libportmidi-dev.install: do not try to install unexisting files
* debian/patches/{06_pm_test_mm,07_pm_test_sysex,08_pm_test_qtest}.diff:
  get rid of missing include and parenthesis, fix long int formatting
* debian/rules: do not compress header files

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    /* see if there is any midi input to process */
131
131
    if (!app_sysex_in_progress) {
132
132
        do {
133
 
            result = Pm_Poll(midi_in);
 
133
            result = Pm_Poll(midi_in);
134
134
            if (result) {
135
135
                long status;
136
 
                if (Pm_Read(midi_in, &buffer, 1) == pmBufferOverflow) 
 
136
                PmError rslt = Pm_Read(midi_in, &buffer, 1);
 
137
                if (rslt == pmBufferOverflow) 
137
138
                    continue;
138
 
            
 
139
                assert(rslt == 1);
 
140
 
139
141
                /* record timestamp of most recent data */
140
142
                last_timestamp = current_timestamp;
141
143
 
187
189
        assert(next); /* must be non-null because queue is not empty */
188
190
        if (next->timestamp <= current_timestamp) {
189
191
            /* time to send a message, first make sure it's not blocked */
190
 
            long status = Pm_MessageStatus(buffer.message);
 
192
            long status = Pm_MessageStatus(next->message);
191
193
            if ((status & 0xF8) == 0xF8) {
192
194
                ; /* real-time messages are not blocked */
193
195
            } else if (thru_sysex_in_progress) {