Skip to contentSkip to conversation

: Setting of hw params rate and channels in c++ interface on development seems to use old parameter setting functions.

ALSA - lib 0000753 [email protected] 1 participant 1 message Mar 22, 2006

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=753>
======================================================================
Reported By: fredy
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   753
Category:                   1_pcm - digital audio
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
======================================================================
Date Submitted:             12-28-2004 23:28 CET
Last Modified:              03-22-2006 06:22 CET

======================================================================
Summary: Setting of hw params rate and channels in c++
interface on development seems to use old parameter setting functions. Description:
In developing a c++ class for pcm_interface I can't set the rate an channels. For example setting a rate of 48000 samples/sec leaves the parameters with odd values.
By debugging I see that while setting access and format uses the regular pcm_hw_params_... functions, setting rate uses _old_pcm_hw_params and probably uses different parameters structures. I've searched #defines in headers that force the use of old functions without finding anthing related.
The test program pcm works correctly.
======================================================================

----------------------------------------------------------------------
perex - 05-30-05 13:21
----------------------------------------------------------------------
It appears like a linking problem. What does this command says?

nm <your_c++_apps> | grep set_rate

It should be something like:

         U snd_pcm_hw_params_set_rate_near@@ALSA_0.9.0rc4

----------------------------------------------------------------------
rlrevell - 03-22-06 06:22
----------------------------------------------------------------------
No response

Issue History
Date Modified Username Field Change
======================================================================

12-28-04 23:28 fredy          New Issue                                    
03-16-05 22:27 jdthood        Note Added: 0003968                          
05-30-05 13:07 perex          Category                 ordinary pcm => pcm -
digital audio
05-30-05 13:21 perex          Note Added: 0004808                          
03-22-06 06:22 rlrevell       Status                   new => closed       
03-22-06 06:22 rlrevell       Note Added: 0008845                          

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642