• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
a select() question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a select() question


  • Subject: a select() question
  • From: MEGELAS Raoul via Coreaudio-api <email@hidden>
  • Date: Wed, 31 Jul 2019 17:53:34 +0200

   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@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: auval only showing apple audiounits
  • Previous by thread: Re: auval only showing apple audiounits
  • Index(es):
    • Date
    • Thread