Re: [linux-audio-dev] /dev/music

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] /dev/music
From: Erik Steffl (esteffl_AT_pbi.net)
Date: Thu Aug 31 2000 - 18:21:42 EEST


  did you check the docs on opensound web page? the /dev/music,
/dev/sequencer, /dev/midi etc. can be confusing.

  also, I have found they are quite responsive when you send them
specific question, you might want to try that.

  even if you're using oss/free the above should work...

        erik

Will Lowe wrote:
>
> If this isn't a good list to send this to, please redirect me. :)
>
> I'm using a SoundBlaster 16, and trying to use /dev/music to do some midi
> programming. This card includes both an opl3 and and exernal midi
> connector (to which my mu100 is connected), and it seems that I should be
> able to select between then via the "device" parameter to most of the SEQ_
> macros in soundcard.h.
>
> I'm getting some weird behavior; with all of the sound modules loaded (sb,
> soundcore, uart401, sound, opl3), output to device "0" goes to the opl3
> (which, btw, is complaining about "Initializing voice 0 with undefined
> instrument"), but output to device 1 _also_ appears to go to the opl3.
>
> Even odder:
>
> "ioctl(seqfd,SNDCTL_SEQ_NRSYNTHS,&x)" give me 2 in x, which is what I'd
> expect. But then doing
>
> for(y=0;y<x;y++)
> {
> synth.device = y;
> ioctl(seqfd, SNDCTL_SYNTH_INFO, &synth);
> printf("%d\n", synth.device);
> }
>
> gives me "0" for both devices. Why do both devices think they're device
> 0? I'm otherwise able to play dsp sounds fine, and if I don't load the
> opl3 driver, the mu100 gets the midi events fine from the mpu 401, so I
> think the config is ok, but here's the output of "cat /dev/sndstat", in
> case it's of any use:
>
> OSS/Free:3.8s2++-971130
> Load type: Driver loaded as a module
> Kernel: Linux gondolin 2.2.16-gondolin #1 Wed Aug 30 00:00:48 PDT 2000
> i586
> Config options: 0
>
> Installed drivers:
>
> Card config:
>
> Audio devices:
> 0: Sound Blaster 16 (4.13) (DUPLEX)
>
> Synth devices:
> 0: Yamaha OPL3
>
> Midi devices:
> 0: Sound Blaster 16
>
> Timers:
> 0: System clock
>
> Mixers:
> 0: Sound Blaster
>
> thanks,
> Will


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Aug 31 2000 - 19:26:38 EEST