[wdmaudiodev] Re: RTAudio packet streaming is inefficient by design?

  • From: Robert Bielik <Robert.Bielik@xxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 20 Jun 2018 08:21:09 +0000

Why number of buffer notifications (and therefore packets in the
buffer) is limited to 2? With more notification points, a driver could
use a single buffer to store captured data and communicate with
a client, and a client could optimize data retrieval.

You can have that with 2 notifications aswell. Actually, I've never understood 
how it is possible to have anything else BUT 2 buffer notifications, as that is 
the most optimal case, i.e. you get a notification for each half of the 
circular buffer (which is how ASIO works), and it is easy to fetch/put data to 
the buffer.

If you have more than 2, it only adds additional complexity without added 
benefits.

Regards
/Robert
Ps. Btw, how is one to interpret a notification count of 1 ? In this case there 
surely must be buffer under/overflows all the time. I've never understood this.



******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: