[EMAIL PROTECTED] a écrit :
>
> Just so people don't think the code has fallen off of the face of the planet ;-)
>
> Currently I'm working on two things with the wine jack driver , one of which needs
>to be complete before I submit the patch, the other can wait until some ongoing jack
>support is complete.
> 2. I don't know of an easy way to do resampling so the input audio matches the
>sample rate that jack expects. What I want is to be able to do something along the
>lines of:
>
> set_sample_rates(input_rate, jack_output_rate);
> set_resample_algorithm(x); /* pick a reasonable algorithm based on the current cpu
>and latency requirements */
>
> And then in the callback routine something like:
> resample(audio_data_in, *audio_data_out);
>
> I haven't found anything even close to this simple as of yet, if anyone has any
>suggestions feel free to mail me about them. There is someone on the jack mailing
>list working on a resampling library that is supposed to be easy to use and flexable.
> Either way, this isn't critical although your music sounds funny if your sample
>rates don't line up very well ;-)
a quick answer: don't allow openinig (in windows sense) if format
doesn't match. winmm will do the format translation itself.
A+