Hi,
Thanks for your reply. In my code I check if I'm on big or little endian
machine in order to append _BE or _LE.
I have already tried with SND_PCM_FORMAT_FLOAT (CPU endian) and the problem
remains..
P
--- http://freecycle.redsteamrecords.com Le Thursday 16 August 2007 09.52:20 Erik de Castro Lopo, vous avez écrit : > ***** Please do not reply directly to me. ***** > ***** Please do not CC me either. ***** > ***** Please reply to the list only. ***** > > Predrag Viceic wrote: > > For some unknown reason, I seem to be unable to set SND_PCM_FORMAT_FLOAT > > format flag when initialising alsa driver. This happens with my both > > cards (on is the laptops AC'97 Audio Controller and the other a similar > > onboard cart) > > > > This line used to work with alsa 0.9 but return an "Invalid argument" > > error with alsa 1.0.14a : > > > > snd_pcm_hw_params_set_format(alsa_pcm_handle, alsa_hwparams, > > SND_PCM_FORMAT_FLOAT_LE) > > You probably want SND_PCM_FORMAT_FLOAT (without the _LE at the end) > to specify CPU native float. Using SND_PCM_FORMAT_FLOAT_LE will mean > that your code is almost certain not correct for big endian CPUS. > > > Example code at lines 1031-1041 : > > http://cvs.savannah.nongnu.org/viewvc/freecycle/src/soundplayer.cpp?annot > >ate=1.19&root=freecycle > > That should probably be fixed as well. > > Erik _______________________________________________ Linux-audio-dev mailing list Linux-audio-dev@email-addr-hidden http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-devReceived on Thu Aug 16 12:15:02 2007
This archive was generated by hypermail 2.1.8 : Thu Aug 16 2007 - 12:15:02 EEST