You are not logged in.

#1 2007-06-07 20:40:54

EnjoMitch
Member
From: Poland, Bytom
Registered: 2006-10-03
Posts: 17

Timidity++ " Can't open pcm device 'default' " [SOLVED]

Hi

I wanted to connect ScummVM's ALSA output with Timidity++ daemon and here's what I get:

[enjo@myhost scilab]$ scummvm
Using configuration file: /home/enjo/.scummvmrc
Looking for sky
Trying to start game 'Beneath a Steel Sky'
Found BASS version v0.0372 (5097 dnr entries)
Connected to Alsa sequencer client [128:0]
ALSA client initialised [129:0]
[root@myhost enjo]# timidity -iA
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 33868, period size 3760 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
Can't open pcm device 'default'.
Couldn't open ALSA pcm device (`s')

module list:

[enjo@myhost odpaly]$ lsmod | grep '^snd'
snd_seq_midi            6560  0
snd_seq_oss            29056  0
snd_seq_midi_event      6528  2 snd_seq_midi,snd_seq_oss
snd_seq                46800  6 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            38816  0
snd_mixer_oss          14336  1 snd_pcm_oss
snd_mpu401              6760  0
snd_mpu401_uart         7040  1 snd_mpu401
snd_rawmidi            19232  2 snd_seq_midi,snd_mpu401_uart
snd_seq_device          6796  4 snd_seq_midi,snd_seq_oss,snd_seq,snd_rawmidi
snd_intel8x0           28828  0
snd_ac97_codec         95396  1 snd_intel8x0
snd_pcm                68484  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              19076  2 snd_seq,snd_pcm
snd                    44388  13 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_mpu401,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc          7816  2 snd_intel8x0,snd_pcm

and

[enjo@myhost odpaly]$ ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116,  0 2007-06-07 13:28 controlC0
crw-rw---- 1 root audio 116, 32 2007-06-07 13:28 controlC1
crw-rw---- 1 root audio  14, 18 2007-06-07 13:28 midi1
crw-rw---- 1 root audio 116, 40 2007-06-07 13:28 midiC1D0
crw-rw---- 1 root audio 116, 24 2007-06-07 13:28 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2007-06-07 13:28 pcmC0D0p
crw-rw---- 1 root audio 116, 25 2007-06-07 13:28 pcmC0D1c
crw-rw---- 1 root audio 116, 18 2007-06-07 13:28 pcmC0D2p
crw-rw---- 1 root audio 116,  1 2007-06-07 13:28 seq
crw-rw---- 1 root audio 116, 33 2007-06-07 13:28 timer

I've tried creating dmix entries in /etc/asound but it didn't help anyway.
MIDIs can be played using timidity and I play multiple sounds simultaneously using aoss. It doesn't help here. My sound hardware is onboard nforce2 AC97
Using alsa-lib 1.0.14rc4-1

Last edited by EnjoMitch (2007-06-12 15:46:29)

Offline

#2 2007-06-12 15:45:58

EnjoMitch
Member
From: Poland, Bytom
Registered: 2006-10-03
Posts: 17

Re: Timidity++ " Can't open pcm device 'default' " [SOLVED]

I got it working somehow.
Here's my /etc/asound.conf

pcm.nforce-hw {
        type hw
        card 0
}
pcm.!default {
        type plug
        slave.pcm "nforce"
}
pcm.nforce {
        type dmix
        ipc_key 1234
        ipc_perm 0660
        slave {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                #rate 44100
                rate 48000
        }
}
ctl.nforce-hw {
        type hw
        card 0
}

ScummVM works like a charm, though I still hear no music in Crimson Fields.

[EDIT] Sometimes launching with
aoss scummvm
command is necessary

Last edited by EnjoMitch (2007-06-12 16:52:12)

Offline

Board footer

Powered by FluxBB