From: David Olofson <david@olofson.net>
To: alsa-devel@lists.sourceforge.net
Subject: Re: C++ driver ?
Date: Sat, 1 Mar 2003 23:36:34 +0100 [thread overview]
Message-ID: <200303012336.34549.david@olofson.net> (raw)
In-Reply-To: <1046529108.13656.23.camel@Jay>
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
next prev parent reply other threads:[~2003-03-01 22:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-24 10:24 [PATCH] Edirol UA-20 PCM support Clemens Ladisch
2003-02-24 12:23 ` Frank Barknecht
2003-02-24 12:58 ` Frank Barknecht
2003-02-24 13:12 ` Clemens Ladisch
2003-02-24 14:39 ` Frank Barknecht
2003-02-24 17:17 ` Clemens Ladisch
2003-02-25 10:24 ` Takashi Iwai
2003-02-25 11:53 ` Clemens Ladisch
2003-02-28 11:33 ` Clemens Ladisch
2003-02-28 14:55 ` Takashi Iwai
2003-03-01 14:31 ` C++ driver ? Giuliano Pochini
2003-03-01 22:36 ` David Olofson [this message]
2003-03-02 16:25 ` Giuliano Pochini
2003-03-02 18:07 ` How to compile ? Giuliano Pochini
2003-03-02 19:24 ` Jaroslav Kysela
2003-03-03 8:21 ` Giuliano Pochini
2003-03-03 9:32 ` Martin Langer
2003-02-28 22:23 ` [PATCH] Edirol UA-20 PCM support Frank Barknecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200303012336.34549.david@olofson.net \
--to=david@olofson.net \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox