snd_pcm_close simple question
does snd_pcm_close free a snd_pcm_hw_params_t that was snd_pcm_hw_params_malloc 'd?
I presume I need to free that?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Quoted 2 lines · ljp
does
snd_pcm_closefree asnd_pcm_hw_params_tthat wassnd_pcm_hw_params_malloc'd? I presume I need to free that?
No. Yes.
The same snd_pcm_hw_params_t could be used to get/set the parameters of another pcm.
HTH
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge
Quoted 5 lines · ljp
does
snd_pcm_closefree asnd_pcm_hw_params_tthat wassnd_pcm_hw_params_malloc'd?I presume I need to free that?
Yes, you have to free what you allocated in your code.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge