At 03:33 PM 9/5/2014, you wrote:
>>> So TimerMBS is a fast timer for xplat but it has to be used without the
>>> ModeSingle, or even Mode, and no Period property? And it is started on
>>> construction and ends with destruction, not Mode starting/stopping?
>>
>> I would also love to see this implemented as a direct replacement code-wise
>> for the built-in Xojo Timer.
>
>We have the timer. Please try it.
>Of course over time I could put more work in to have a mode/period property.
>
>But normal timer use for me is that I only set period and mode on
>initialization in my projects.
Oh, I wasn't asking for it being expanded, although in a sense it would be
nice. I just wanted to know explicitly if that was the methodology.
-----
One other question that I realized: okay, so you did a fast timer for Windows.
That seems to work great for polling for MIDI. I set up the Timer with a
Period=1 and it does:
while MIDIStream.Poll <> 0
// handles MIDI info
wend
So it's kind of polling over polling. But what if I set up a Thread and in the
Run event, did:
do
if Operate Then
while MIDIStream.Poll <> 0
// handles MIDI info
wend
else
Exit Do
end if
loop
And I spawned the thread by:
MIDIThread = new CMIDIThread
MIDIThread.Operate = True
MIDIThread.Run
And then when I wanted to stop the polling, just go MIDIThread.Operate = False.
Wouldn't that be as fast as a fast timer? Do I really need a fast timer?
Garth Hjelte
Sampler User
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info