[Openal-devel] OpenAl and dmix

James Tomaschke james at infosemi.com
Mon Jun 27 12:25:37 PDT 2005


Brian Black wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>hi,
>	This might be a a newbie question, but i have openal installed and i am
>running into problems.
>
>	I have created an ~/.asoundrc file for help with dmix, because i have
>had problems playing multiple sound programs at the same time.  This
>.asoundrc file helped me use xmms and amarok at the same time.
>
>1. My problem is when i am trying to run an openal program when i am
>using one of the other sound programs, the program ran last will block
>untill the first program that i started had finished.  This seems
>strange to me that some programs will "dmix" and some will not.  Any
>ideas on this?
>  
>
Just a thought, could your blocking application be using a hard-coded 
alsa device such as "hw:0"?

Are you using an ~/.openalrc to specify the Alsa device?
(define alsa-out-device "default")

>Also, I am thinking about developing and audio app using the openal api,
>and i  had some questions that maybe someone could clear up for me.
>
>1.  I am assuming this api wraps around alsa or oss,  i am going to be
>using an RME hammerfall dsp and i need to attach some inputs to some
>outputs to allow the input from a mic to go to the output which will go
>to their headset, (low latency Monitoring).  How is this done, as i have
>not found any docs talking about how to send sounds out certain channels?
>  
>
The hammerfall is a beautiful card, congratulations.  I would suggest 
that you use Alsa and Jack if you wish to write any music software.  
That will allow it to integrate with some of the existing audio 
applications out there.  OpenAL was designed for a different purpose and 
unless you need a cross-platform Audio API I would stick with Alsa.  You 
will have more power over your audio hardware, and modern Alsa has been 
doing a lot better with low-latency stuff.

>2.  Some examples i have found do not compile because they are including
>the file #include <strstring.h> , which i do not have.  (i am running
>gentoo 2005.0, kernel-2.6.11)?
>
>is this a known issue?
>  
>
strstring.h has been deprecated, are you using a modern AL release?
/james

>
>thanx in advanced
>bj
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.1 (GNU/Linux)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFCwEcNI9Y/1VIS+jgRAruUAJ96eA1au70oCZofyMNR9ptmKC5TjwCfUgM9
>SymmHvXi0QtpTJiMXc9puUo=
>=TnGN
>-----END PGP SIGNATURE-----
>_______________________________________________
>openal-devel mailing list
>openal-devel at opensource.creative.com
>http://opensource.creative.com/mailman/listinfo/openal-devel
>  
>


-- 
James Tomaschke
Snr. Software Engineer
InfoSemiconductor, Inc.




More information about the Openal-devel mailing list