mohan
mohan

Reputation: 9

Playing multiple wav files using ALSA in C with different volumes

I need to play more than 2 wav files using ALSA library C interface. Each file should be played with different volumes but it should be possible to play them simultaneously. I am using embedded linux on a board with sgtl5000 device. I get only one entry for playback device as pcm0p. Please let me know how to play multiple sounds together with different volumes. Please let me know if you require more details. Thanks in advance

Upvotes: 0

Views: 1415

Answers (1)

CL.
CL.

Reputation: 180040

If the ALSA library has been compiled with the dmix plugin, just open the device named plug:dmix for each file.

Upvotes: 1

Related Questions