Re: Salsa-lib : _snd_pcm_hw_param_test is not defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 14 Oct 2008 09:46:16 +0200,
Matthieu CASTET wrote:
> 
> Takashi Iwai a écrit :
> > At Mon, 13 Oct 2008 16:01:07 +0200,
> > Matthieu CASTET wrote:
> >> Hi,
> >>
> >> Takashi Iwai a écrit :
> >>> At Mon, 13 Oct 2008 11:49:03 +0200,
> >>> Matthieu CASTET wrote:
> >>>> Hi,
> >>>>
> >>>> it seems there is a missing implementation of _snd_pcm_hw_param_test
> >>>> function in src/pcm_params.c .
> >>>>
> >>>> It is used in pcm_macros.h by snd_pcm_hw_params_test_xxx functions.
> >>> Thanks for reporting.  
> >> Thanks for your quick reply.
> >>
> >>> Does the patch below works?
> >> Hum,
> >>
> >> dir is a pointer, but _snd_pcm_hw_param_set want a integer.
> > 
> > Oops, the fixed patch is below.
> > 
> Ok sound better.
> But why _snd_pcm_hw_param_test take a pointer and not a integer. All
> snd_pcm_hw_params_test_xxx seems to take a dir as integer.

When you pass a pointer pointing the integer value 0, it returns the
direction it goes in return.

> >> BTW, some application expect snd_config (from cards.c) to be not null
> >> after a call to snd_config_update.
> > 
> > Hm, which apps?
> > 
> portaudio.

One app isn't always enough to change the thing :)
OTOH, if just faking a pointer (i.e. passing any non-null) fixes the
problem, it might be a reasonable workaround...


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux