On Saturday 01 March 2003 15.31, Giuliano Pochini wrote: > Is there any chance to write a driver in C++ ? I'll get an > Echoaudio card soon, so I started to study the "Writing an ALSA > driver" tutorial by T.Iwai and the C++ sources of the generic > driver by Echoaudio. That drivers do not use exceptions (VVindos > don't like it), but things as simple as a "new" do not work in > kernel context. Did someone write a C++ support library or I have > to convert everything to C ? Suggestions are welcome...
I've done some C++ in kernel space (RTLinux), but the short story: I wouldn't recommend it, and I don't think anything complex enough to really warrant the use of C++ should live in kernel space anyway. Either way, I've been looking at that driver too, and intend to turn it into an ALSA driver, one way or another. There will be no C++; I'll either convert the code, or write a new driver. I only have a Layla20, so I'm not sure what to do with the rest. Seems like the code for all of the cards is very similar, but I'll have to look harder to be sure, since each driver is a separate subclass, with lots of code that appears to be pretty much copy/pasted. Of course, I don't know how much longer Real Life and other projects will keep me from getting started with this. I just won't start yet another project with a bunch of others in a state of "to be released RSN". Too much task switching overhead. ;-) If someone beats me to it, I'll do what I can to help out. //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://audiality.org -' --- http://olofson.net --- http://www.reologica.se --- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel