"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "seq/aplaymidi/aplaymidi.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

aplaymidi.c  (alsa-utils-1.2.1.tar.bz2):aplaymidi.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 636 skipping to change at line 636
} }
while (length > MIDI_BYTES_PER_SEC) { while (length > MIDI_BYTES_PER_SEC) {
err = snd_seq_event_output(seq, ev); err = snd_seq_event_output(seq, ev);
check_snd("output event", err); check_snd("output event", err);
err = snd_seq_drain_output(seq); err = snd_seq_drain_output(seq);
check_snd("drain output", err); check_snd("drain output", err);
err = snd_seq_sync_output_queue(seq); err = snd_seq_sync_output_queue(seq);
check_snd("sync output", err); check_snd("sync output", err);
if (sleep(1)) if (sleep(1))
fatal("aborted"); fatal("aborted");
ev->data.ext.ptr += MIDI_BYTES_PER_SEC; ev->data.ext.ptr = (char *)ev->data.ext.ptr + MIDI_BYTES_PER_SEC;
length -= MIDI_BYTES_PER_SEC; length -= MIDI_BYTES_PER_SEC;
} }
ev->data.ext.len = length; ev->data.ext.len = length;
} }
static void play_midi(void) static void play_midi(void)
{ {
snd_seq_event_t ev; snd_seq_event_t ev;
int i, max_tick, err; int i, max_tick, err;
skipping to change at line 872 skipping to change at line 872
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
static const char short_options[] = "hVlp:d:"; static const char short_options[] = "hVlp:d:";
static const struct option long_options[] = { static const struct option long_options[] = {
{"help", 0, NULL, 'h'}, {"help", 0, NULL, 'h'},
{"version", 0, NULL, 'V'}, {"version", 0, NULL, 'V'},
{"list", 0, NULL, 'l'}, {"list", 0, NULL, 'l'},
{"port", 1, NULL, 'p'}, {"port", 1, NULL, 'p'},
{"delay", 1, NULL, 'd'}, {"delay", 1, NULL, 'd'},
{} {0}
}; };
int c; int c;
int do_list = 0; int do_list = 0;
init_seq(); init_seq();
while ((c = getopt_long(argc, argv, short_options, while ((c = getopt_long(argc, argv, short_options,
long_options, NULL)) != -1) { long_options, NULL)) != -1) {
switch (c) { switch (c) {
case 'h': case 'h':
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)