Re: Question about snd_pcm_sw_params_get_boundary

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

 



Clemens Ladisch <cladisch <at> googlemail.com> writes:

> 
> Jay wrote:
> > snd_pcm_sw_params_get_boundary(params, &boundary);
> >
> > I see a huge number like "7944349742681554944" in boundary after this call.
> > Is this normal?
> 
> Yes.
> 
> > Can you comment on the correctness of these values?
> 
> It's just a special value much larger than the buffer size (and happens
> to be a multiple of the buffer size for internal reasons).  Think of it
> as "infinite".
> 
> Regards,
> Clemens
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> 


Thanks for your reply. 

Can you also tell me if it is normal to see the same number in the
threshold? I suspected from the boundary because it is used when setting the
threshold as in the following code part.

snd_pcm_sw_params_set_stop_threshold(handlePlayback, params, boundary);
snd_pcm_sw_params_get_stop_threshold(params, &threshold);

The actual problem is:

snd_pcm_sw_params_set_silence_threshold(handlePlayback, params, boundary);

returns -22 (invalid argument) error with the boundary and threshold values
that I mentioned before.
Can you tell me why it is returning -22? Is there something that I am missing?

Thanks a lot,



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux