On Fri, 2 Aug 2002, Clemens Ladisch wrote:

> Pedro Lopez-Cabanillas wrote:
> > It also works for me with OSS emulation:
> > 
> > $ ./rawmidi -v -I /dev/midi02
> > Using:
> > Input: /dev/midi02
> > Output: NONE
> > Read midi in
> > Press ctrl-c to stop
> > read fe
> > read fe
> > read fe
> > read fe
> > read fe
> > read fe
> > read fe
> > Closing
> > 
> > But something as simple as:
> > $ cat /dev/midi02 | od -x
> > Doesn't work. Nothing received. ?!
> 
> rawmidi.c uses the ALSA library functions to access the rawmidi device.
> Internally, alsa-lib should use the same read() call as cat, but there
> seems to be a difference somewhere, maybe in the initialization.
> I'm looking into it.

Note that the cat utility (od probably too) uses big input buffer. If you 
want to capture byte-stream, use the dd utility with the block size of 1 
byte.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to