[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Protux-devel] [Fwd: Re: [Alsa-devel] available sampling rate detect
From: |
Luciano Giordana |
Subject: |
Re: [Protux-devel] [Fwd: Re: [Alsa-devel] available sampling rate detection] |
Date: |
Tue, 11 Feb 2003 14:28:02 -0200 |
User-agent: |
KMail/1.4.3 |
> i changed the three snd_pcm_hw_params_test_...()==0 to != 0 and added
> snd_pcm_hw_params_any() before the first test. MustuxAudioDeviceMapper
> seems now to recognise correctly the interfaces. I removed the comments
> around the format test, as if works fine for me too...
I will test it too here as soon as I get compilation working again.
> But even if MustuxAudioDeviceMapper seems to detect correctly the
> capabilities of the interfaces, BusSelector still let me select buses
> that's don't support 44.1kHz (like my digital out), and don't allow me
> to select 'legal' buses, like my SB16 in...
BusSelector is not checking the valid buses. I am working on it right now
> i didn't commit any changes to cvs, but here's my patch for
> MustuxAudioDeviceMapper.cc:
fine, I handle this then, dont worry
thanks again
>
> address@hidden:~/mustuxlib$ cvs diff MustuxAudioDeviceMapper.cc
> Index: MustuxAudioDeviceMapper.cc
> ===================================================================
> RCS file: /cvsroot/mustux/mustuxlib/MustuxAudioDeviceMapper.cc,v
> retrieving revision 1.36
> diff -r1.36 MustuxAudioDeviceMapper.cc
> 667a668,669
>
> > if (snd_pcm_hw_params_any(pcmHandle, tempHwParams) < 0)
> > return ERROR_CANNOT_OPEN_BUS; // would need its own
>
> error code
> 669c671
> < if (snd_pcm_hw_params_test_rate (pcmHandle, tempHwParams,
> pRate, 0)==0)
> ---
>
> > if (snd_pcm_hw_params_test_rate (pcmHandle, tempHwParams,
>
> pRate, 0)!=0)
> 674,675c676,677
> < /* UNCOMMENT ME ... THIS IS CRASHING !!! WHY ???
> < if (snd_pcm_hw_params_test_format (pcmHandle, tempHwParams,
> format)==0)
> ---
>
> > /* UNCOMMENT ME ... THIS IS CRASHING !!! WHY ??? */
> > if (snd_pcm_hw_params_test_format (pcmHandle, tempHwParams,
>
> format)!=0)
> 681,682c683,684
> < */
> < if (snd_pcm_hw_params_test_channels (pcmHandle, tempHwParams,
> pChannels)==0)
> ---
>
> > if (snd_pcm_hw_params_test_channels (pcmHandle, tempHwParams,
>
> pChannels)!=0)
>
>
>
>
> _______________________________________________
> Protux-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/protux-devel
--
Best Regards
--
Luciano Giordana - Musician - Certified Java/GNU C++ Developer - Free Software
Evangelist
Project Mustux - http://www.freesoftware.fsf.org/mustux
-- Once Palladium is up and running , I will become a hacker --