LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Timidity and alsa problem (https://www.linuxquestions.org/questions/linux-software-2/timidity-and-alsa-problem-726629/)

wilku 05-17-2009 04:53 PM

Timidity and alsa problem
 
Hi

I have a problem with timidity. When I explicitly tell timidity to play a midi file, it works ok. Like this
Code:

$timidity midifile.mid
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
Playing midifile.mid
MIDI file: midifile.mid
Format: 1  Tracks: 12  Divisions: 96
Track name: Flute
Track name: Organ
Track name: Harp
Track name: Solo Soprano
Track name: Solo Boy
Track name: Choir
Track name: Strings
Track name: August, 1994
Track name: Alan Chia
Track name: alanchia@post1.com
Track name: http://www.post1.com/~alanchia
channel 16 => 0
channel 17 => 1
channel 18 => 2
channel 19 => 3
channel 20 => 4
channel 21 => 5
channel 22 => 6
(untitled)

But when I start timidity as an ALSA server, it doesn't want to play correctly. The command and the output is like this:
Code:

$timidity -iA -B2,8 -Os -EFreverb=0 2>&1 &
 Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 680 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3

I've tried Rosegarden and ScummVM games (Flight of the Amazon Queen and Beneath a Steel Sky). There are some sounds (in Rosegarden you can even recognize the note) but the static noise is making it unable to hear. Rosegarden is saying that it is using 128:0 port and ScummVM is configured to use this as well, but the results are frustrating.

If it were some timidity configuration problems, it wouldn't play midi files "normally", would it?

Can you advise where to look for the problem? I'm using PulseAudio as my sound server.


All times are GMT -5. The time now is 03:29 PM.