You are not logged in.

#1 2007-11-18 01:05:42

senjin
Member
Registered: 2006-09-15
Posts: 181
Website

[SOLVED] How to use timidity++ and other programs at the same time?

I have installed timidity following arch wiki instructions - I have soundfont, and I start it in /etc/rc.conf

It works properly with tuxguitar (and tuxguitar-alsa) or kmid, but I cannot play MIDI and - for example - oggs in amarok at the same time.

I suspect that the problem is that timidity doesn't use dmix alsa plugin I have made in my ~/.asoundrc.

The question is: how to tell timidity to use my dmix plugin?

Last edited by senjin (2007-11-19 19:53:50)

Offline

#2 2007-11-18 01:21:50

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] How to use timidity++ and other programs at the same time?

See example, defining "default".

Offline

#3 2007-11-18 10:00:01

senjin
Member
Registered: 2006-09-15
Posts: 181
Website

Re: [SOLVED] How to use timidity++ and other programs at the same time?

but they don't define "default" there, but "!default"...

anyway, I have already both "default" and "!default" defined exactly the same way:

pcm.!default 
{
    type plug
    slave.pcm "dmixer"
}
pcm.default
{
  type plug
  slave.pcm "dmixer"
}

 
pcm.dmixer
{
    type dmix
    ipc_key 1024
    slave 
    {
        pcm "hw:0,0"
        format "S32_LE"
        channels 2
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 44100
    }
    bindings
    {
        0 0
        1 1
        }
}
 
ctl.dmixer
{
    type hw
    card 0
}

pcm.w_y_h
{
  type hw
  card 0
  device 0
}
                         
pcm.what_you_hear
{
  type plug
  ttable.0.10 1 # digital mix left
  ttable.1.11 1 # digital mix right
  slave.pcm w_y_h
}

pcm.skype
{
  type asym
  playback.pcm "dmixer"
  capture.pcm "skype_input"
}

pcm.skype_input
{
  type dsnoop
  ipc_key 2048
  slave
  {
    pcm "hw:0,0"
    period_time 0
    buffer_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
  }
}

and it doesn't work!

Last edited by senjin (2007-11-18 17:49:21)

Offline

#4 2007-11-18 18:43:34

senjin
Member
Registered: 2006-09-15
Posts: 181
Website

Re: [SOLVED] How to use timidity++ and other programs at the same time?

Ok, let me describe it more clear:

I can run timidity from console typing "timidity file.mid" or "timidity -Os file.mid" and it works properly with amarok at the same time. But I want to use timidity as a daemon, to use it with kmid or tuxguitar. How to configure it?

edit: SOLVED

I moved my ~/.asoundrc to /etc/asound.conf and tuxguitar works with amarok - at least if I start amarok first.

Last edited by senjin (2007-11-19 19:52:32)

Offline

Board footer

Powered by FluxBB