I am working on a multiple stream jukebox program (plays 3 separate
stereo streams out a 5.1 sound card, in this case the EPIA-VIA-M). Each
stream uses aplay to play a song, when it finishes it calls aplay again
with a new song. I am using dshare to multiplex 3 copies of aplay into
the sound card (asound.conf file attached). It plays all 3 streams
great. The problem I am having is whichever stream I start first causes
the dshare server to spawn, and it doesn't return until all streams have
stopped playing (whereas I need it to return when the song finishes so I
can start another one on that channel). 

So I think what I need is a way to start the dshare server separately
before I start any of the aplay tasks so that the server is not tied to
any of them.

Anybody have any ideas or suggestions? I am sort of in a bind because
this product is to be shown at CES in 3 days and we just noticed this
behavior.            

Thanks in advance,

-- 
Kevin Seghetti: E-Mail: [EMAIL PROTECTED], HTTP: www.tenetti.org
GPG public key: http://tenetti.org/phpwiki/index.php/KevinSeghettiGPGKey
Check out www.worldfoundry.org for my GPL'ed 3D video game engine
Copyright is a temporary loan from the public domain, not property

# asound.conf for IntelliNet/Russound Media Server

pcm_slave.sixchannel {
        pcm "hw:0,1"
        channels 6
        rate 48000
        buffer_size 8092
        period_size 1024
        period_time 0
}

pcm.localOutputStreamNone {
        type dshare
        slave sixchannel
        ipc_key 1024
        ipc_key_add_uid no
        bindings {
        0 6
        1 7
        }
}

pcm.localOutputStream1 {
        type dshare
        slave sixchannel
        ipc_key 1024
        ipc_key_add_uid no
        bindings {
                0 0
                1 1
        }
}

pcm.localOutputStream2 {
        type dshare
        slave sixchannel
        ipc_key 1024
        ipc_key_add_uid no
        bindings {
                0 2
                1 3
        }
}

pcm.localOutputStream3 {
        type dshare
        slave sixchannel
        ipc_key 1024
        ipc_key_add_uid no
        bindings {
                0 4
                1 5
        }
}


pcm.dsp0 {
        type plug
        slave.pcm "ossmix"
}

ctl.mixer0 {
        type hw
        card 0
}



Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to