play multiple mp3 to multiple outputs

Moderator: flatmax

Post Reply
Nicklli
Posts: 1
Joined: Sat Aug 05, 2017 5:40 pm

play multiple mp3 to multiple outputs

Post by Nicklli » Mon Aug 07, 2017 6:40 am

Hi

I have finally had time to set up my octo sound card since having received it from the kickstarter. I'm happily get sound from the first 2 audio connections (red and white RCA). What I would like to do is play multiple mp3 files to different outputs. For example:

Track 1 - stereo output channel 1 and 2
Track 2 - stereo output channel 3 and 4
Track 3 - stereo output channel 5 and 6
Track 4 - stereo output channel 7 and 8

Thanks in advance for any help anyone can provide.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: play multiple mp3 to multiple outputs

Post by flatmax » Tue Aug 08, 2017 9:16 pm

HI there,

Here are lots of examples for splitting stereo pairs :
http://www.pogo.org.uk/~mark/linuxdj/

The general approach they take seems to be to use the dmix plugin for output and dsnoop for input. This alters sample rates and word sizes to match.
If however you intend to make sure that you use the same word sizes and sample rates, then you can probably not use dmix and dsnoop and simply route.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

ryanjblajda
Posts: 4
Joined: Sun Aug 13, 2017 3:08 am

Re: play multiple mp3 to multiple outputs

Post by ryanjblajda » Sun Aug 13, 2017 3:43 am

glad i found this post, this is basically what i would like to do as well. a much cheaper way to create a multiroom audio server solution

ryanjblajda
Posts: 4
Joined: Sun Aug 13, 2017 3:08 am

Re: play multiple mp3 to multiple outputs

Post by ryanjblajda » Sun Aug 13, 2017 4:06 am

if my basic understanding is correct, this is the asoundrc file that would split each of the 8 mono outputs into 4 stereo pairs.

i based this understanding on this link ->

http://alsa.opensrc.org/Splitting_front ... _.asoundrc

pcm.OctoMain {
type dmix
ipc_key 2048
slave {
pcm "hw:0"
rate 44100
period_time 0
period_size 1024
buffer_size 8192
channels 8
}
bindings {
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}
}

pcm.MusicServer1 {
type plug
slave {
pcm "OctoMain"
channels 8
}
ttable.0.0 1
ttable.1.1 1
}

pcm.MusicServer2 {
type plug
slave {
pcm "OctoMain"
channels 8
}
ttable.2.2 1
ttable.3.3 1
}

pcm.MusicServer3 {
type plug
slave {
pcm "OctoMain"
channels 8
}
ttable.4.4 1
ttable.5.5 1
}

pcm.MusicServer4 {
type plug
slave {
pcm "OctoMain"
channels 8
}
ttable.6.6 1
ttable.7.7 1
}

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests