lugoteehalt
10-13-2007, 05:58 AM
Bit of a long shot, but can anybody suggest something for this? Trying to get sound with Doom2 (free version of same). The music server is called musserv. The sound effects work all right with alsa.
Initially got this sort of thing:lugo@debian:~$ aconnect
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
can't open sequencer
lugo@debian:~$
lugo@debian:~$ amidi --dump
cannot open port "default": Inappropriate ioctl for device
lugo@debian:~$
Got better results when installed some sequencer modules in kernel
Doom2 starting:
M_Init: Init miscellaneous info.
R_Init: Init DOOM refresh daemon -
R_LoadTrigTables: Endianness...ok.
R_InitData: Textures Flats Sprites
R_Init: R_InitPlanes R_InitLightTables R_InitSkyMap R_InitTranslationsTables
P_Init: Init Playloop state.
I_Init: Setting up machine state.
I_InitSoundGen: configured /dev/dsp for 16bit signed data
I_InitSound: Passing sound data to /usr/games/sndserv via pipe: sent OK
S_Init: Setting up sound.
S_Init: default sfx volume 15
HU_Init: Setting up heads up display.
ST_Init: Init status bar.
I_InitGraphics: svgalib 1.4.3
Using: retrace
I_PlaySong: excess data in MUS lump (10653 > 10644), correcting header
I_PlaySong: excess data in MUS lump (9441 > 9434), correcting header
Had started Timidity and musserv to get above.
lugo@debian:~$ musserv -m -u 2 -v
device 2: TiMidity port 1
musserv: Can't read GENMIDI ID
lugo@debian:~$
lugo@debian:~$ timidity -iA -B2,8 -Os -q0/0 -k0 MHH &
[1] 11509
lugo@debian:~$ Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 1024 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
lugo@debian:~$ musserv -v
device 0: Midi Through Port-0
device 1: TiMidity port 0
device 2: TiMidity port 1
device 3: TiMidity port 2
device 4: TiMidity port 3
Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 1024 bytes
musserv: Can't read GENMIDI ID
lugo@debian:~$ musserv -l
Available MIDI devices (use -m):
None
lugo@debian:~$So get the impression problem is with musserv not being able to read GENMIDI ID, perhaps. Some of the midi ports or whatever they are do not produce any sound.
Got music, but no music with Doom2, with something like $ amidi 128:0 file.midThough very distorted. Suspect it wasn't amidi. After Timidity had been started, 128:0 is one of the Timidity ports.
Thanks any help.
Added:
Sorry about this girls; it gets sillier:
lugo@debian:~$ aconnect --input --list
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
Connecting To: 15:0
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
lugo@debian:~$ aconnect --output --list
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
lugo@debian:~$ pmidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ aseqdump --list
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ musserv -l (list)
Available MIDI devices (use -m):
None
lugo@debian:~$ musserv -v (verbose)
device 0: Midi Through Port-0
lugo@debian:~$ aseqdump --list (list input ports)
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ aseqdump --port Midi:0
Waiting for data. Press Ctrl+C to end.
Source_ Event_________________ Ch _Data__
<-- Started lsdoom here.
<snip>
15:1 Note on 1 38 127
15:1 Note off 9 38 127
15:1 Note off 9 54 127
15:1 Note off 1 38 127
15:1 Note on 9 38 127
15:1 Note on 9 54 127
15:1 Note on 1 38 127
15:1 Note off 9 38 127
15:1 Note off 9 54 127
15:1 Note off 1 38 127
15:1 Note on 9 40 127
15:1 Note on 9 55 127
15:1 Note on 1 40 127
15:1 Note off 9 40 127
15:1 Note on 9 40 127
15:1 Note off 9 55 127
15:1 Note on 9 55 127
15:1 Note off 9 40 127
15:1 Note off 9 55 127
15:1 Note off 1 40 127
15:1 Note on 9 38 127
15:1 Note on 9 54 127
15:1 Note on 1 36 127
15:1 Note off 9 38 127
15:1 Note on 9 38 127
15:1 Note off 9 54 127
<snip>
This stuff was comming in real time.
So, since musserv - the doom music server - was the only sequencer type thing running, surely this stuff is comming from it. It seems only a question of turning it into music and getting it to the loud speakers. How may this be done?
Incidentally, above still happens if the sound server sndserv, for the sound effects - which work, is disabled. It isn't always 127 in last line.
lugo@debian:~$ cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.12rc1 emulation code)
Kernel: Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
ESS Maestro3 PCI at 0xd800, irq 5
Audio devices:
0: Maestro3 (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
7: system timer
Mixers:
0: SigmaTel STAC9721,23
$ cat /proc/modules
sd_mod 19040 2 - Live 0xc8ad0000
ipv6 226016 8 - Live 0xc8b0d000
snd_seq_virmidi 6944 0 - Live 0xc8a3e000
snd_rtctimer 3776 1 - Live 0xc8a41000
pktcdvd 26620 1 - Live 0xc8ac1000
dm_mod 50232 2 dm_snapshot,dm_mirror, Live 0xc8a83000
snd_seq_midi_emul 5952 0 - Live 0xc8a3b000
snd_seq_instr 7392 0 - Live 0xc89b1000
snd_seq_dummy 3844 0 - Live 0xc89b4000
snd_seq_oss 28768 1 - Live 0xc8a6a000
snd_seq_midi 8192 0 - Live 0xc8a11000
snd_rawmidi 22560 2 snd_seq_virmidi,snd_seq_midi, Live 0xc8a34000
snd_seq_midi_event 7008 3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi, Live 0xc8a0e000
snd_seq 45680 9 snd_seq_virmidi,snd_seq_midi_emul,snd_seq_instr,sn d_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_ event, Live 0xc8a5d000
snd_seq_device 7820 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi ,snd_seq, Live 0xc8a01000
snd_maestro3 23300 0 - Live 0xc8995000
i2c_core 19680 1 i2c_piix4, Live 0xc898f000
snd_ac97_codec 83104 1 snd_maestro3, Live 0xc89cd000
snd_ac97_bus 2400 1 snd_ac97_codec, Live 0xc8965000
snd_pcm_oss 38368 0 - Live 0xc8984000
snd_mixer_oss 15200 1 snd_pcm_oss, Live 0xc8905000
snd_pcm 68676 3 snd_maestro3,snd_ac97_codec,snd_pcm_oss, Live 0xc8972000
snd_timer 20996 3 snd_rtctimer,snd_seq,snd_pcm, Live 0xc88ca000
snd_page_alloc 9640 1 snd_pcm, Live 0xc8889000
snd 47012 11 snd_seq_virmidi,snd_seq_oss,snd_rawmidi,snd_seq,sn d_seq_device,snd_maestro3,snd_ac97_codec,snd_pcm_o ss,snd_mixer_oss,snd_pcm,snd_timer, Live 0xc8914000
soundcore 9248 2 snd, Live 0xc886a000
some deletions for brevity. :)
Initially got this sort of thing:lugo@debian:~$ aconnect
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
can't open sequencer
lugo@debian:~$
lugo@debian:~$ amidi --dump
cannot open port "default": Inappropriate ioctl for device
lugo@debian:~$
Got better results when installed some sequencer modules in kernel
Doom2 starting:
M_Init: Init miscellaneous info.
R_Init: Init DOOM refresh daemon -
R_LoadTrigTables: Endianness...ok.
R_InitData: Textures Flats Sprites
R_Init: R_InitPlanes R_InitLightTables R_InitSkyMap R_InitTranslationsTables
P_Init: Init Playloop state.
I_Init: Setting up machine state.
I_InitSoundGen: configured /dev/dsp for 16bit signed data
I_InitSound: Passing sound data to /usr/games/sndserv via pipe: sent OK
S_Init: Setting up sound.
S_Init: default sfx volume 15
HU_Init: Setting up heads up display.
ST_Init: Init status bar.
I_InitGraphics: svgalib 1.4.3
Using: retrace
I_PlaySong: excess data in MUS lump (10653 > 10644), correcting header
I_PlaySong: excess data in MUS lump (9441 > 9434), correcting header
Had started Timidity and musserv to get above.
lugo@debian:~$ musserv -m -u 2 -v
device 2: TiMidity port 1
musserv: Can't read GENMIDI ID
lugo@debian:~$
lugo@debian:~$ timidity -iA -B2,8 -Os -q0/0 -k0 MHH &
[1] 11509
lugo@debian:~$ Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 1024 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
lugo@debian:~$ musserv -v
device 0: Midi Through Port-0
device 1: TiMidity port 0
device 2: TiMidity port 1
device 3: TiMidity port 2
device 4: TiMidity port 3
Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 1024 bytes
musserv: Can't read GENMIDI ID
lugo@debian:~$ musserv -l
Available MIDI devices (use -m):
None
lugo@debian:~$So get the impression problem is with musserv not being able to read GENMIDI ID, perhaps. Some of the midi ports or whatever they are do not produce any sound.
Got music, but no music with Doom2, with something like $ amidi 128:0 file.midThough very distorted. Suspect it wasn't amidi. After Timidity had been started, 128:0 is one of the Timidity ports.
Thanks any help.
Added:
Sorry about this girls; it gets sillier:
lugo@debian:~$ aconnect --input --list
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
Connecting To: 15:0
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
lugo@debian:~$ aconnect --output --list
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
lugo@debian:~$ pmidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ aseqdump --list
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ musserv -l (list)
Available MIDI devices (use -m):
None
lugo@debian:~$ musserv -v (verbose)
device 0: Midi Through Port-0
lugo@debian:~$ aseqdump --list (list input ports)
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
lugo@debian:~$ aseqdump --port Midi:0
Waiting for data. Press Ctrl+C to end.
Source_ Event_________________ Ch _Data__
<-- Started lsdoom here.
<snip>
15:1 Note on 1 38 127
15:1 Note off 9 38 127
15:1 Note off 9 54 127
15:1 Note off 1 38 127
15:1 Note on 9 38 127
15:1 Note on 9 54 127
15:1 Note on 1 38 127
15:1 Note off 9 38 127
15:1 Note off 9 54 127
15:1 Note off 1 38 127
15:1 Note on 9 40 127
15:1 Note on 9 55 127
15:1 Note on 1 40 127
15:1 Note off 9 40 127
15:1 Note on 9 40 127
15:1 Note off 9 55 127
15:1 Note on 9 55 127
15:1 Note off 9 40 127
15:1 Note off 9 55 127
15:1 Note off 1 40 127
15:1 Note on 9 38 127
15:1 Note on 9 54 127
15:1 Note on 1 36 127
15:1 Note off 9 38 127
15:1 Note on 9 38 127
15:1 Note off 9 54 127
<snip>
This stuff was comming in real time.
So, since musserv - the doom music server - was the only sequencer type thing running, surely this stuff is comming from it. It seems only a question of turning it into music and getting it to the loud speakers. How may this be done?
Incidentally, above still happens if the sound server sndserv, for the sound effects - which work, is disabled. It isn't always 127 in last line.
lugo@debian:~$ cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.12rc1 emulation code)
Kernel: Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
ESS Maestro3 PCI at 0xd800, irq 5
Audio devices:
0: Maestro3 (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
7: system timer
Mixers:
0: SigmaTel STAC9721,23
$ cat /proc/modules
sd_mod 19040 2 - Live 0xc8ad0000
ipv6 226016 8 - Live 0xc8b0d000
snd_seq_virmidi 6944 0 - Live 0xc8a3e000
snd_rtctimer 3776 1 - Live 0xc8a41000
pktcdvd 26620 1 - Live 0xc8ac1000
dm_mod 50232 2 dm_snapshot,dm_mirror, Live 0xc8a83000
snd_seq_midi_emul 5952 0 - Live 0xc8a3b000
snd_seq_instr 7392 0 - Live 0xc89b1000
snd_seq_dummy 3844 0 - Live 0xc89b4000
snd_seq_oss 28768 1 - Live 0xc8a6a000
snd_seq_midi 8192 0 - Live 0xc8a11000
snd_rawmidi 22560 2 snd_seq_virmidi,snd_seq_midi, Live 0xc8a34000
snd_seq_midi_event 7008 3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi, Live 0xc8a0e000
snd_seq 45680 9 snd_seq_virmidi,snd_seq_midi_emul,snd_seq_instr,sn d_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_ event, Live 0xc8a5d000
snd_seq_device 7820 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi ,snd_seq, Live 0xc8a01000
snd_maestro3 23300 0 - Live 0xc8995000
i2c_core 19680 1 i2c_piix4, Live 0xc898f000
snd_ac97_codec 83104 1 snd_maestro3, Live 0xc89cd000
snd_ac97_bus 2400 1 snd_ac97_codec, Live 0xc8965000
snd_pcm_oss 38368 0 - Live 0xc8984000
snd_mixer_oss 15200 1 snd_pcm_oss, Live 0xc8905000
snd_pcm 68676 3 snd_maestro3,snd_ac97_codec,snd_pcm_oss, Live 0xc8972000
snd_timer 20996 3 snd_rtctimer,snd_seq,snd_pcm, Live 0xc88ca000
snd_page_alloc 9640 1 snd_pcm, Live 0xc8889000
snd 47012 11 snd_seq_virmidi,snd_seq_oss,snd_rawmidi,snd_seq,sn d_seq_device,snd_maestro3,snd_ac97_codec,snd_pcm_o ss,snd_mixer_oss,snd_pcm,snd_timer, Live 0xc8914000
soundcore 9248 2 snd, Live 0xc886a000
some deletions for brevity. :)