Re: Help with midi player application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I took the technique from what pmidi did, which seemed like the most on-topic example.  It also seemed a bit easier to change tempo.

I agree it sounds like they are wrong, except (a) I do not think they actually are (debug output as I queued them) and (b) when I increase the output size of the queue, the pauses happen at different times, even though the enqueued data is otherwise identical.

But that said I don't think it is hard to do the running calculations and change it, if you think there's merit?

Related question: Is there any way to query the queue for what is in it?   Not just how many?   See if somehow they ticks in the queue indeed are later than the current queue tick? 

Linwood

PS. Thanks for the quick reply!

-----Original Message-----
From: Clemens Ladisch [mailto:clemens@xxxxxxxxxx] 
Sent: Friday, February 17, 2017 9:19 AM
To: amidi@xxxxxxxxxxxxxx; alsa-devel@xxxxxxxxxxxxxxxx
Subject: Re:  Help with midi player application

amidi@xxxxxxxxxxxxxx wrote:
> The symptoms are on a fast, long piece play hangs for a long period of 
> time (many seconds).  I put into the loop queries as to queue info/ 
> state/etc, and what I see is the queue tick advancing correctly during 
> this pause, but the events in the queue are steady at about 80%full 
> and not emptying.

This sounds as if the events have the wrong time stamp.

> snd_seq_ev_schedule_tick called with parameter 2 = 1 for relative ticks.

Why relative?  (I'm not aware of anybody ever using this flags; it's possible that there is some bug ...)


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux