<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Configuration</title><link>https://sourceforge.net/p/soundmanager/wiki/Configuration/</link><description>Recent changes to Configuration</description><atom:link href="https://sourceforge.net/p/soundmanager/wiki/Configuration/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 15 May 2018 15:27:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/soundmanager/wiki/Configuration/feed" rel="self" type="application/rss+xml"/><item><title>Configuration modified by Thomas Sparber</title><link>https://sourceforge.net/p/soundmanager/wiki/Configuration/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -8,116 +8,116 @@
 ----------------
 First, let's look at a very simple example:

-pcm_slave.stereo {
-        pcm "hw:0,0"            # or "hw:1,0" for the second card
-        channels 2
-}
-pcm.mono1 {
-        type plug
-        slave.pcm {
-                type dshare
-                ipc_key 87882222
-                slave stereo
-                bindings [ 0 ] # bind the first channel of the physical audiodevice to this virtual one
-        }
-}
-pcm.mono2 {
-        type plug
-        slave.pcm {
-                type dshare
-                ipc_key 87882222
-                slave stereo
-                bindings [ 1 ] # bind the second channel of the physical audiodevice to this virtual one
-        }
-}
+    pcm_slave.stereo {
+            pcm "hw:0,0"            # or "hw:1,0" for the second card
+            channels 2
+    }
+    pcm.mono1 {
+            type plug
+            slave.pcm {
+                    type dshare
+                    ipc_key 87882222
+                    slave stereo
+                    bindings [ 0 ] # bind the first channel of the physical audiodevice to this virtual one
+            }
+    }
+    pcm.mono2 {
+            type plug
+            slave.pcm {
+                    type dshare
+                    ipc_key 87882222
+                    slave stereo
+                    bindings [ 1 ] # bind the second channel of the physical audiodevice to this virtual one
+            }
+    }

 First we define our slave that uses hw:0,0. This means we use the first audio device. And we use 2 channels. Then we create two mono devices (called mono1 and mono2) and bind one channel to each.

 The next example configuration shows how to configure a dolby sorround 7.1 card:

-pcm_slave.eightchannels {
-   pcm "hw:0,0"            # or "hw:1,0" for the second card
-        channels 8
-}
-pcm.mono1 {
-        type plug
-        slave.pcm {
-                type dshare
-                ipc_key 87882222
-                slave eightchannels
-                bindings [ 0 ]
-        }
-}
-pcm.mono2 {
-        type plug
-        slave.pcm {
-                type dshare
-                ipc_key 87882222
-                slave eightchannels
-                bindings [ 1 ]
-        }
-}
-...
+    pcm_slave.eightchannels {
+       pcm "hw:0,0"            # or "hw:1,0" for the second card
+            channels 8
+    }
+    pcm.mono1 {
+            type plug
+            slave.pcm {
+                    type dshare
+                    ipc_key 87882222
+                    slave eightchannels
+                    bindings [ 0 ]
+            }
+    }
+    pcm.mono2 {
+            type plug
+            slave.pcm {
+                    type dshare
+                    ipc_key 87882222
+                    slave eightchannels
+                    bindings [ 1 ]
+            }
+    }
+    ...

 It is more ore less the same with the exception that we just use 8 instead of 2 channels.

 The next configuration now is very complex and you should read through the ALSA manual pages:

-pcm.!default {
-   type asym
-   playback.pcm "dshare"
-   capture.pcm "dsnooper"
-}
-
-pcm.dsnooper {
-   type dsnoop
-   ipc_key 2048
-   ipc_perm 0666 
-   slave {
-       period_time 0
-       period_size 1024
-       buffer_size 4096
-       rate 44100
-       format S32_LE
-       pcm "hw:1,0"
-       channels 2
-   }
-   bindings {
-       0 0
-       1 1
-   }
-}
-
-pcm.dshare {
-   type dmix
-   ipc_key 2048
-   ipc_key_add_uid false # let multiple users share
-   ipc_perm 0660 # IPC permissions (octal, default 0600)
-   ipc_gid audio
-   slave {
-       pcm "hw:1,0"
-       channels 8
-   }
-}
- 
-pcm.mono1 {
-   type plug
-   slave {
-       pcm "dshare"
-       channels 8
-   }
-   ttable.0.0 1
-}
- 
-pcm.mono2{
-   type plug
-   slave {
-       pcm "dshare"
-       channels 8
-   }
-   ttable.0.1 1
-}
-...
+    pcm.!default {
+       type asym
+       playback.pcm "dshare"
+       capture.pcm "dsnooper"
+    }
+    
+    pcm.dsnooper {
+       type dsnoop
+       ipc_key 2048
+       ipc_perm 0666 
+       slave {
+           period_time 0
+           period_size 1024
+           buffer_size 4096
+           rate 44100
+           format S32_LE
+           pcm "hw:1,0"
+           channels 2
+       }
+       bindings {
+           0 0
+           1 1
+       }
+    }
+    
+    pcm.dshare {
+       type dmix
+       ipc_key 2048
+       ipc_key_add_uid false # let multiple users share
+       ipc_perm 0660 # IPC permissions (octal, default 0600)
+       ipc_gid audio
+       slave {
+           pcm "hw:1,0"
+           channels 8
+       }
+    }
+     
+    pcm.mono1 {
+       type plug
+       slave {
+           pcm "dshare"
+           channels 8
+       }
+       ttable.0.0 1
+    }
+     
+    pcm.mono2{
+       type plug
+       slave {
+           pcm "dshare"
+           channels 8
+       }
+       ttable.0.1 1
+    }
+    ...

 The basic idea here is that we create an audio device which is able to capture and playback. From that device we create some subdevices (mono1, mono2...)

@@ -133,32 +133,33 @@

 Here an example configuration:

-DEVICE START
-   name = "mono1"
-   sampleRate = "44100"
-   channels = "2"
-DEVICE END
-
-DEVICE START
-   name = "mono2"
-   sampleRate = "44100"
-   channels = "2"
-DEVICE END
-
-PLAYLIST START
-   name = "P1"
-   type="Folder"
-   path = "/home/user/Music/P1"
-PLAYLIST END
-
-PLAYLIST START
-   name = "P2"
-   type="Folder"
-   path = "/home/user/Music/P2"
-PLAYLIST END
-
-PLAYLIST START
-   name = "Radio"
-   type="Device"
-   device = "default"
-PLAYLIST END
+    DEVICE START
+       name = "mono1"
+       sampleRate = "44100"
+       channels = "2"
+    DEVICE END
+    
+    DEVICE START
+       name = "mono2"
+       sampleRate = "44100"
+       channels = "2"
+    DEVICE END
+    
+    PLAYLIST START
+       name = "P1"
+       type="Folder"
+       path = "/home/user/Music/P1"
+    PLAYLIST END
+    
+    PLAYLIST START
+       name = "P2"
+       type="Folder"
+       path = "/home/user/Music/P2"
+    PLAYLIST END
+    
+    PLAYLIST START
+       name = "Radio"
+       type="Device"
+       device = "default"
+    PLAYLIST END
+    
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Sparber</dc:creator><pubDate>Tue, 15 May 2018 15:27:00 -0000</pubDate><guid>https://sourceforge.net5355969af98118c3d020a7a37ef3438c7141911a</guid></item><item><title>Configuration modified by Thomas Sparber</title><link>https://sourceforge.net/p/soundmanager/wiki/Configuration/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="configuration"&gt;Configuration&lt;/h1&gt;
&lt;p&gt;It is very important to have a clean configuration so that every sound channel works properly.&lt;br /&gt;
Here are just some examples on how to configure /etc/asound.conf. For more information on how to configure ALSA to work properly please visit their wiki.&lt;/p&gt;
&lt;h2 id="etcasoundconf"&gt;/etc/asound.conf&lt;/h2&gt;
&lt;p&gt;First, let's look at a very simple example:&lt;/p&gt;
&lt;p&gt;pcm_slave.stereo {&lt;br /&gt;
        pcm "hw:0,0"            # or "hw:1,0" for the second card&lt;br /&gt;
        channels 2&lt;br /&gt;
}&lt;br /&gt;
pcm.mono1 {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm {&lt;br /&gt;
                type dshare&lt;br /&gt;
                ipc_key 87882222&lt;br /&gt;
                slave stereo&lt;br /&gt;
                bindings &lt;span&gt;[ 0 ]&lt;/span&gt;  # bind the first channel of the physical audiodevice to this virtual one&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
pcm.mono2 {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm {&lt;br /&gt;
                type dshare&lt;br /&gt;
                ipc_key 87882222&lt;br /&gt;
                slave stereo&lt;br /&gt;
                bindings &lt;span&gt;[ 1 ]&lt;/span&gt;  # bind the second channel of the physical audiodevice to this virtual one&lt;br /&gt;
        }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;First we define our slave that uses hw:0,0. This means we use the first audio device. And we use 2 channels. Then we create two mono devices (called mono1 and mono2) and bind one channel to each.&lt;/p&gt;
&lt;p&gt;The next example configuration shows how to configure a dolby sorround 7.1 card:&lt;/p&gt;
&lt;p&gt;pcm_slave.eightchannels {&lt;br /&gt;
   pcm "hw:0,0"            # or "hw:1,0" for the second card&lt;br /&gt;
        channels 8&lt;br /&gt;
}&lt;br /&gt;
pcm.mono1 {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm {&lt;br /&gt;
                type dshare&lt;br /&gt;
                ipc_key 87882222&lt;br /&gt;
                slave eightchannels&lt;br /&gt;
                bindings &lt;span&gt;[ 0 ]&lt;/span&gt;&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
pcm.mono2 {&lt;br /&gt;
        type plug&lt;br /&gt;
        slave.pcm {&lt;br /&gt;
                type dshare&lt;br /&gt;
                ipc_key 87882222&lt;br /&gt;
                slave eightchannels&lt;br /&gt;
                bindings &lt;span&gt;[ 1 ]&lt;/span&gt;&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;It is more ore less the same with the exception that we just use 8 instead of 2 channels.&lt;/p&gt;
&lt;p&gt;The next configuration now is very complex and you should read through the ALSA manual pages:&lt;/p&gt;
&lt;p&gt;pcm.!default {&lt;br /&gt;
    type asym&lt;br /&gt;
    playback.pcm "dshare"&lt;br /&gt;
    capture.pcm "dsnooper"&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;pcm.dsnooper {&lt;br /&gt;
    type dsnoop&lt;br /&gt;
    ipc_key 2048&lt;br /&gt;
    ipc_perm 0666 &lt;br /&gt;
    slave {&lt;br /&gt;
        period_time 0&lt;br /&gt;
        period_size 1024&lt;br /&gt;
        buffer_size 4096&lt;br /&gt;
        rate 44100&lt;br /&gt;
        format S32_LE&lt;br /&gt;
        pcm "hw:1,0"&lt;br /&gt;
        channels 2&lt;br /&gt;
    }&lt;br /&gt;
    bindings {&lt;br /&gt;
        0 0&lt;br /&gt;
        1 1&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;pcm.dshare {&lt;br /&gt;
    type dmix&lt;br /&gt;
    ipc_key 2048&lt;br /&gt;
    ipc_key_add_uid false # let multiple users share&lt;br /&gt;
    ipc_perm 0660 # IPC permissions (octal, default 0600)&lt;br /&gt;
    ipc_gid audio&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm "hw:1,0"&lt;br /&gt;
        channels 8&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;pcm.mono1 {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm "dshare"&lt;br /&gt;
        channels 8&lt;br /&gt;
    }&lt;br /&gt;
    ttable.0.0 1&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;pcm.mono2{&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm "dshare"&lt;br /&gt;
        channels 8&lt;br /&gt;
    }&lt;br /&gt;
    ttable.0.1 1&lt;br /&gt;
}&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;The basic idea here is that we create an audio device which is able to capture and playback. From that device we create some subdevices (mono1, mono2...)&lt;/p&gt;
&lt;p&gt;These lines here are just some exampples and I don't guarantee that this works for you. Please read the ALSA manuals for more information&lt;/p&gt;
&lt;h2 id="soundconf"&gt;sound.conf&lt;/h2&gt;
&lt;p&gt;In this file should be placed either in /usr/share/soundserver/sound.conf or in the same folder as the server executable. In this file you have to put your SoundServer specific configuration. This means &lt;em&gt;devices&lt;/em&gt; and &lt;em&gt;playlists&lt;/em&gt;.&lt;br /&gt;
Every Device definition starts with "DEVICE START" and ends with "DEVICE END". In between you have to specify the ALSA-device name you configured in &lt;em&gt;/etc/asound.conf&lt;/em&gt;, the sample rate and the amount of channels. Please note that the channels don't work the right way at the moment and you should set it to 2.&lt;br /&gt;
Every playlist starts with "PLAYLIST START" and ends with "PLAYLIST END". In between you have to specify the name and the type of the device.&lt;br /&gt;
type="Folder" means that this playlist consists of audiofiles (ogg). The folder of the files must be specified with the path-tag.&lt;br /&gt;
type="Device" means that this playlist is "the output of an input device" like line-in or microphone. You have to specify the input-device name with the device-tag.&lt;/p&gt;
&lt;p&gt;Here an example configuration:&lt;/p&gt;
&lt;p&gt;DEVICE START&lt;br /&gt;
    name = "mono1"&lt;br /&gt;
    sampleRate = "44100"&lt;br /&gt;
    channels = "2"&lt;br /&gt;
DEVICE END&lt;/p&gt;
&lt;p&gt;DEVICE START&lt;br /&gt;
    name = "mono2"&lt;br /&gt;
    sampleRate = "44100"&lt;br /&gt;
    channels = "2"&lt;br /&gt;
DEVICE END&lt;/p&gt;
&lt;p&gt;PLAYLIST START&lt;br /&gt;
    name = "P1"&lt;br /&gt;
    type="Folder"&lt;br /&gt;
    path = "/home/user/Music/P1"&lt;br /&gt;
PLAYLIST END&lt;/p&gt;
&lt;p&gt;PLAYLIST START&lt;br /&gt;
    name = "P2"&lt;br /&gt;
    type="Folder"&lt;br /&gt;
    path = "/home/user/Music/P2"&lt;br /&gt;
PLAYLIST END&lt;/p&gt;
&lt;p&gt;PLAYLIST START&lt;br /&gt;
    name = "Radio"&lt;br /&gt;
    type="Device"&lt;br /&gt;
    device = "default"&lt;br /&gt;
PLAYLIST END&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Sparber</dc:creator><pubDate>Tue, 28 May 2013 09:53:44 -0000</pubDate><guid>https://sourceforge.netbdbec62b8ce13f14abe09f393cd2da6444593fac</guid></item></channel></rss>