How can I use QSound with ALSA ?

There is no ALSA support for QSound as ALSA only works in Linux. Qt uses its own sound server(QSS) that interacts with /dev/dsp directly. If you want to use ALSA on Linux, then implement it directly with the ALSA API or use Phonon.

3 comments

October 8, 2010

Picture of danilocesar danilocesar

Lab Rat

This answer is not enough, imho.

Since QSound uses different facilities for different OS, it shouldn’t be a problem to use alsa (instead of NAS) as the backend for Linux.

afaik, NAS is not installed by default in most recent linux distributions.

October 8, 2010

Picture of danilocesar danilocesar

Lab Rat

The decision to use NAS was took at a time when alsa was not shipped with kernel 2.4;
Well, we’re living in a totally different situation now.

http://lists.trolltech.com/qt-interest/2004-10/thread00331-0.html [lists.trolltech.com]

Anyway, I’ve found an implementation of a QSound-like API using alsa. I will find the like at work and put it here tomorrow.

October 14, 2010

Picture of danilocesar danilocesar

Lab Rat

I’ve found it [lists.trolltech.com]

Write a comment

Sorry, you must be logged in to post a comment.