[linux-audio-dev] XAP: Event size

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] XAP: Event size
From: David Olofson (david_AT_olofson.net)
Date: Wed Dec 18 2002 - 01:22:23 EET


My current event struct is 32 bytes on 32 bit CPUs, and 36 bytes for
64 bit. (That is, hosts on 64 bit archs should make it 64.)

That means 12 bytes for arguments. 8 bytes on 64 bit platforms, if we
stick with 32 bytes/event.

What I'm thinking is just that we won't need 4 billion different
actions, and we won't need 4 billion VVIDs.

How about using 24 bits for 'id' and 8 bits for 'action'? 16 Mvoices
and 256 actions? I think we should stay away from dynamically
assigned user actions anyway, so that should be enough. (We have only
some 20 events or so, timeline events included.)

//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -'
   --- http://olofson.net --- http://www.reologica.se ---


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Dec 18 2002 - 01:28:00 EET