# Raspberry Pi: Multiple independent audio channels

**URL:** <https://discourse.mopidy.com/t/raspberry-pi-multiple-independent-audio-channels/1014>\
**Category:** Misc\
**Created:** [December 15, 2015, 9:46pm UTC](https://discourse.mopidy.com/t/raspberry-pi-multiple-independent-audio-channels/1014 "2015-12-15T21:46:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jl8e](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jl8e/32/276_2.png) [@jl8e](https://discourse.mopidy.com/u/jl8e)\
**Post date:** [December 15, 2015, 9:46pm UTC](https://discourse.mopidy.com/t/raspberry-pi-multiple-independent-audio-channels/1014/1 "2015-12-15T21:46:03Z")

</div>

I want to feed a multi-zone home audio system from a Raspberry Pi.

One channel should be easy, but I want multiple people in the house to be able to listen to their own music simultaneously.

I know there’s some work ahead of me to get Mopidy to manage several streams at once (ideal) or to run multiple copies of it at once (more likely).

Since I’m new to Raspberry Pi and Linux audio, I need to know if are any audio driver or hardware limitations that are going to make this impossible or insanely hard. (I know I’ll need an audio output device per channel.)

My googling makes me think there aren’t, but it’s a weird enough use case that I’m inferring from related discussion.

Thanks

---

<div class="post-metadata">

**Author:** ![martin\_schilliger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/martin_schilliger/32/174_2.png) [@martin\_schilliger](https://discourse.mopidy.com/u/martin_schilliger)\
**Post date:** [December 21, 2015, 12:44pm UTC](https://discourse.mopidy.com/t/raspberry-pi-multiple-independent-audio-channels/1014/2 "2015-12-21T12:44:04Z")

</div>

Maybe a way is to run multiple chroot instances and install Mopidy in them. Then you can assign the output to audio hardware or network clients which will play it.  
I thought about this because I installed Mopidy with chroot on my Synology DiskStation and play the audio through a node.js AirPlay-Hub to the Apple Airport Express.

I used [airtunes\_hub for node.js](https://github.com/kkckkc/airtunes_hub)

And configured the output in the mopidy.conf like this:  
`output = audioconvert ! audio/x-raw-int, channels=2, rate=44100, endianness=1234, width=16, depth=16, signed=true ! tcpclientsink host=localhost port=1234`

In my example I start the node.js server on startup of chroot at local port 1234. In the server.js file I specified the IP-adress of my AirPort Express as the default in my server.js, because I didn’t know better.

Hope this will help you. 😊

Martin
