[AD] BeOS sound driver |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
A patch against 3.9.32 is attached. The patch might look a little funny in some places -- I was trying to write a windowed driver at the same time so I had to undo those changes. Only tested on one machine (BeOS 5 Personal Edition, p233). I took the easy way out and used the Allegro software mixer. If the driver were to ask the OS to do the mixing for us, then we could get hardware benefits. But then the effects might not work (like in the Windows version?) I haven't looked into this. The driver spawns a new thread, like the keyboard driver. Recording is not in, as it is a real pain to write. The buffer size and thread priorities are guesstimated. They work here, but probably should be configurable. Peter -- tjaden@xxxxxxxxxx - http://www.psynet.net/tjaden/
Attachment:
beossound.diff.gz
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |