Skip to contentSkip to conversation

snd_pcm_close simple question

DISCUSSION ljp 3 participants 3 messages Feb 18, 2003 – Feb 19, 2003

lore
Share & tools
lore

ljp

author
#0 lore raw

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

#1 lore raw
Quoted 2 lines · ljp

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?

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

#2 lore raw
In reply to ljp
Quoted 5 lines · ljp

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?

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