On Thu, 11 Sep 2003 14:12:08 +0200 (METDST)
Clemens Ladisch <[EMAIL PROTECTED]> wrote:
> What do you mean with "the MIDI synth device"? There could be more
> than one, or none. Usually, you let the user choose the device.
>
> As default name, you could use "default", which is "hw:0,0" by
> default, but can be changed in the user's .asoundrc.
I didn't explained myself very well :)
I'm working on an ear trainer using the rawmidi interface. I couldn't find any
documentation about (it's an incredible lack, i think), so i cutted some code from the
web.
I open the device with:
error = snd_rawmidi_open( NULL, &handle_out, device_out, 0 );
and I write data with:
snd_rawmidi_write(handle_out, &data, 1);
Because i would let this application used by newbies, i need a method to obtain (from
files in /proc/asound, i think) the name of a working MIDI Synth device. For example
on my system i use the SBLive Emu10k1 synth via "hw:0,1" and "hw:0,2", but i tried
randomly!
How can i do this? And also, where can i found any documentation? I'm doing things by
trying, and i think my program won't wotk on another linux installation!
--
Hardware is never old.
People just choose the wrong OS.
-------------------------------------------------------
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