Re: [Liboss-devel] osscat
Brought to you by:
thesin
|
From: Alexander S. <ast...@it...> - 2002-10-20 23:04:46
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 20 October 2002 06:21 pm, Dave Vasilevsky wrote:
> Making a real /dev/dsp would be an interesting project, but it's not
> really necessary. I was thinking about it mostly because it's not
> always a great idea to #define common words like "open". For example,
> the aRTs oss code uses open() to open /dev/dsp, but also has a C++
> method someClass::open(). Liboss currently would not work there, since
> it would turn someClass::open() into someClass::oss_open()--but the
> best workaround is probably just to hack on aRTs's oss module. Just
> make an #ifdef in soundcard.h so that aRTs can #include it without
> #defining open(), and then make aRTs explicitly use oss_*() when
> necessary. I guess the folks upstream might not like that hack, so we
> could just make it into a whole new file "audioliboss.cc" or something.
Um... just do this:
inline int open(whatever_the_args_are) {
return oss_open(whatever_the_args_are);
}
> I'm not sure that I agree that liboss should be moved from esound to
> CoreAudio. To make liboss based on CoreAudio, we would need to spawn a
> daemon, do a lot of IPC, do some conversion between types of sound,
> etc--esd already does most of this, is it worth rewriting all that? The
> things that esound doesn't do perfectly are:
No, not if it's a shared library like my esddsp hack is.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9szZ5XGZ5Dt+bdVwRApRKAJ97B2zry/AiLjEaylel6bhw6dXF+ACgo6aT
QSmwtkHViHW122TqhLRcktI=3D
=3Dp+Ir
=2D----END PGP SIGNATURE-----
|