Couldn't open mixer device /dev/audioctl

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, kodachi, cesium

Couldn't open mixer device /dev/audioctl

Postby Juvenal » Tue May 17, 2005 3:46 pm

Hello.

I've installed OSS on my Solaris 10 x86 machine and it works find when I run
the 'osstest' command.

But all the other applications don't work and the error messege is this:

Couldn't open mixer device /dev/audioctl

Anyone could help me with this?

Thanks
Juvenal
New Member
 
Posts: 6
Joined: Tue May 17, 2005 3:39 pm

Re: Couldn't open mixer device /dev/audioctl

Postby dev » Tue May 17, 2005 6:22 pm

Juvenal wrote:Hello.

I've installed OSS on my Solaris 10 x86 machine and it works find when I run
the 'osstest' command.

But all the other applications don't work and the error messege is this:

Couldn't open mixer device /dev/audioctl

Anyone could help me with this?

Thanks



Did you run the /usr/lib/oss/bin/soundon command first?


Regards
dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Juvenal » Tue May 17, 2005 6:28 pm

Yes. I did run soundon
Juvenal
New Member
 
Posts: 6
Joined: Tue May 17, 2005 3:39 pm

Postby dev » Tue May 17, 2005 7:23 pm

Juvenal wrote:Yes. I did run soundon


What does cat /dev/sndstat show?

If it shows no audio device, you need to ensure that you don't have any conflicting audio drivers installed. What is your audio card?



regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Juvenal » Tue May 17, 2005 11:40 pm

That's the output from /dev/sndstat:

Card config:
VIA 8233 audio controller at 0xe000 irq 5

Audio devices:
0: VT8237 (DUPLEX)
1: VT8237 (shadow) (DUPLEX)
2: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
9: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)

Synth devices:
0: OSS Virtual Synth v2.5

Midi devices:

Mixers:
0: VT8237 (AD1888)
1: Virtual Mixer

History:
dsp5: pid 1194 OUT
dsp6: pid 1194 OUT
dsp7: pid 1194 OUT
dsp8: pid 1194 OUT
dsp9: pid 1194 OUT

I think that my soundcard is installed and functioning correctly but every application
on JDS seems to look for this /dev/audioctl. I looked at mixer(7I) and saw that these
/dev/audio and /dev/audioctl are part of the audio(7I) interface.

The problem now is how to make the apps recognize the /dev/dsp instead of /dev/audio.
Juvenal
New Member
 
Posts: 6
Joined: Tue May 17, 2005 3:39 pm

Postby dev » Wed May 18, 2005 12:15 am

Juvenal wrote:That's the output from /dev/sndstat:

Card config:
VIA 8233 audio controller at 0xe000 irq 5

Audio devices:
0: VT8237 (DUPLEX)
1: VT8237 (shadow) (DUPLEX)
2: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
9: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)

Synth devices:
0: OSS Virtual Synth v2.5

Midi devices:

Mixers:
0: VT8237 (AD1888)
1: Virtual Mixer

History:
dsp5: pid 1194 OUT
dsp6: pid 1194 OUT
dsp7: pid 1194 OUT
dsp8: pid 1194 OUT
dsp9: pid 1194 OUT

I think that my soundcard is installed and functioning correctly but every application
on JDS seems to look for this /dev/audioctl. I looked at mixer(7I) and saw that these
/dev/audio and /dev/audioctl are part of the audio(7I) interface.

The problem now is how to make the apps recognize the /dev/dsp instead of /dev/audio.


Hi,

Try this:

mkdir /dev/sound
ln -s /dev/audioctl00 /dev/sound/0ctl
ln -s /dev/audio0 /dev/sound/0

Also ensure that /dev/audio is a symlink to /dev/audio0
and /dev/audioctl is a symlink to /dev/audioctl00


Now logout and login to JDS.

best regards
dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Juvenal » Wed May 18, 2005 12:52 am

Dev, it worked! :-)

The sound system is working normally now.

I really appreciate your help. Thank you.

But there's one little thing: when I play an mp3 the Java Media Player simply stops
playing. I don't know if there is something to do with a bad mp3 file (until now I've tested
5 files and they all stop playing at random).

Do you have any suggestions?

Well, I'm really happy just to see this working! The little problem with JMP does not
bother me too much because I use XMMS.

Thanks
Juvenal
New Member
 
Posts: 6
Joined: Tue May 17, 2005 3:39 pm

Postby dev » Wed May 18, 2005 3:43 am

Juvenal wrote:Dev, it worked! :-)

The sound system is working normally now.

I really appreciate your help. Thank you.

But there's one little thing: when I play an mp3 the Java Media Player simply stops
playing. I don't know if there is something to do with a bad mp3 file (until now I've tested
5 files and they all stop playing at random).

Do you have any suggestions?

Well, I'm really happy just to see this working! The little problem with JMP does not
bother me too much because I use XMMS.

Thanks



Why waste your time with Java when XMMS does everything and also has
OSS support.???


Best regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Juvenal » Wed May 18, 2005 3:06 pm

I know that XMMS is way better that JMP but I wanted to know why the music simply
stops when running in JMP.

Well I tried somethings, read a lot more things, but still didn't find any reason of why
this happens.

When I do find the reason why, I'll post it here. This way everyone will know.

But, man.. thank you for your help.
Juvenal
New Member
 
Posts: 6
Joined: Tue May 17, 2005 3:39 pm

Postby dev » Wed May 18, 2005 4:46 pm

Juvenal wrote:I know that XMMS is way better that JMP but I wanted to know why the music simply
stops when running in JMP.

Well I tried somethings, read a lot more things, but still didn't find any reason of why
this happens.

When I do find the reason why, I'll post it here. This way everyone will know.

But, man.. thank you for your help.


Our devaudio emulation isn't perfect so audio stops with certain apps. However if you use mpg123 from the Companion CD it will work fine. Also audioplay and sdtaudio will work.


best regards
Dev Mazumdar
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Sergio » Wed Nov 09, 2005 7:13 pm

OK : very useful thread !

Recreating /dev/sound with both links works fine for me also.

Thank's !

I can play sound files very normally with jmplayer and also Timidity : but there are midifiles (no tried MP3).

Cheers,

Sergio
Sergio
 


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron