Re: [Alsa-user] how can i use alsa-lib api to control pcm playback volume.

2008-09-03 Thread Falcon Xu
ust be in this situations: use snd_hctl_open() after snd_pcm_open(); other the set_value won't work. i don't know why, but i can use this for my code. and that's over of this question. From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Sun, 31 Aug 2008 22:10:52 +0800Subject: [Alsa-user]

[Alsa-user] how can i use alsa-lib api to control pcm playback volume.

2008-08-31 Thread Falcon.Xu
Hi: i'm doing some develop on a linux system, kernel version: 2.6.23.9. alsa-lib version:1.0.15. now ffmpeg and alsa can work together to playback mp3/aac file. during this step: snd_pcm_open(&pcm_handle, "default", SND_PCM_STREAM_PLAYBACK, 0); set_params(); //set hw and sw params. while(a