yeah, Thanks Colin :) BR, Himanshu On Thu, Jun 30, 2011 at 2:25 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote: > 'Twas brillig, and Himanshu Chug at 30/06/11 09:32 did gyre and gimble: > > > > On Wed, Jun 29, 2011 at 10:06 PM, Tanu Kaskinen <tanuk at iki.fi > > <mailto:tanuk at iki.fi>> wrote: > > > > These questions seem to have gone unanswered... > > > > > > > > Thanks Tanu :) for the reply. > > I understand you and other senior members are busy with new release > > activities and patch integrations, as seen from group activity, > > thanks again for the reply and clarifications :) > > Yeah sorry, I seemed to have missed the questions initially too. Thanks > Tanu :) > > > one question here is, How to find out what sampling-rate that an > > particular sink (e.g ALSA) is configured to ? > > or in other words , how PA knows sampling-rate configuration of an sink > > (any sink API's ? )? so that PA starts re-sampling to that particular > > sample-rate. > > So sink input and sinks both have "sample specs" If the sample specs are > not compatible (!pa_sample_spec_equal()) then we will do some form of > resampling. > > From the client api you can see the resample method via the > pa_sink_input_info struct: > > http://freedesktop.org/software/pulseaudio/doxygen/structpa__sink__input__info.html > > Internally you can just check to see whether there is a resampler in the > thread_info of the pa_sink_input object (just look in sink-input.c for > examples of this), or the requested_resample_method or > actual_resample_method elements of the pa_sink_input object. > > Hope that answers the question :) > > Col > > > > > > > > -- > > Colin Guthrie > gmane(at)colin.guthr.ie > http://colin.guthr.ie/ > > Day Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mageia Contributor [http://www.mageia.org/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110630/58f2b026/attachment.htm>