Hello list,
i am writing a C soft for the terminal, which handel a keyboard, and sends the midi notes, to 3 modules (with some handling). i use select() in a loop for this purpose. the only FD passed to select is stdin (FD=0), to receive the terminal keyboard. this works fine, i.e; the 3 modules paly quite well, and the ascii characters are received properly. but i encounter a midi problem: each time select is called, my midi buffers (of the modules, not the midi kbd), are filled with old values, even if i clear the buffers, and indexes. my questions: - is it possible to flush the midi cache at this point? -is this a normal behaviour even when select returns only 1 fd (fd=0)? any idea would be appreciated to debug this situation. Thanks in advance. Raoul MEGELAS [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
