alsa_driver BE/LE formats

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

alsa_driver BE/LE formats

rm-2
hi,
        i'm using jack on my ibook with an imic usb interface.  the alsa
driver attempts to open the device using the SND_PCM_FORMAT_S??
constants.  the problem is that, it seems, the imic only outputs LE
(or at least that's the only way i can open it), but
SND_PCM_FORMAT_S16 uses the cpu endianness (i assume) so trying to
open it this way fails.
        if i add SND_PCM_FORMAT_S16_LE to the list of formats, jack will
startup and open the interface, and the simple_client runs ok.  of
course if you try to do any processing on the data, it's in the wrong
endianness.
        the question then is, is byteswapping within the purview of jack's
alsa_driver or is this a matter to be dealt with in the alsa ?  (i
could byte swap in the jack client (turning the float back to the
short, byteswap, then back to float), but that seems excessively
ugly).

        thanks,
        rob

----
Robert Melby
uucp:  ...!{decvax,hplabs,ncar,purdue,rutgers}!org!arcsin!rm


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel