<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to wiki</title><link>https://sourceforge.net/p/soundmanager/wiki/</link><description>Recent changes to wiki</description><atom:link href="https://sourceforge.net/p/soundmanager/wiki/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 15 May 2018 15:27:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/soundmanager/wiki/feed.rss" 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 isPermaLink="false">https://sourceforge.net5355969af98118c3d020a7a37ef3438c7141911a</guid></item><item><title>Home modified by Thomas Sparber</title><link>https://sourceforge.net/p/soundmanager/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,14 @@
-Welcome to your wiki!
+SoundManager
+============

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Welcome to the WIKI for SoundManager.
+With SoundManager you are able to control multiple sound channels of one or multiple sound cards.
+It uses ALSA to speak to the sound cards.
+An example how to use SoundManager would be a shop or store with multiple rooms where every should have its own speaker. Then with SoundManager you would have a single web interface where you could control every single speaker.
+SoundManager also allows to create different playlists and assign them to one or multiple sound channels. It is also possible to use line-in or a microphone instead of a playlist.

-The wiki uses [Markdown](/p/soundmanager/wiki/markdown_syntax/) syntax.
+Here are the install instructions: [Installation]
+And here are the configuration instructions: [Configuration]

 [[members limit=20]]
 [[download_button]]
&lt;/pre&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 11:24:23 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net413b9275fc981524eea4096db9278f05a2c901c9</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 isPermaLink="false">https://sourceforge.netbdbec62b8ce13f14abe09f393cd2da6444593fac</guid></item><item><title>Installation modified by Thomas Sparber</title><link>https://sourceforge.net/p/soundmanager/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="installation"&gt;Installation&lt;/h1&gt;
&lt;p&gt;In order to compile SoundManager you need to install the following libraries:&lt;br /&gt;
- libvorbis: The library to decode .ogg files&lt;br /&gt;
- libasound: The library to access ALSA&lt;/p&gt;
&lt;p&gt;Then SoundManager can be compiled using the makefile or by typing in a terminal:&lt;br /&gt;
$ gcc -o sound main.c linkedlist.c -lvorbis -lasound&lt;br /&gt;
$ gcc -o client client.c&lt;/p&gt;
&lt;p&gt;To install the webclient you should have apache, lampp (or similar) running with php.&lt;br /&gt;
You have to copy the content of webclient in your /var/www or htdocs folder.&lt;/p&gt;
&lt;p&gt;Before we can test now we have to create a sound.config file. For more instructions on how to create that file please consult the wiki.&lt;/p&gt;
&lt;p&gt;After creating the sound.config file you can start the SoundManager by typing "./sound" in a terminal. You should get some messages that the SoundManager opened the devices and has been started. Also a file called infos.xml should have been created in the current directory.&lt;br /&gt;
&lt;strong&gt;Please also check that the pipe (it should be under /tmp/soundserver_fifo) has read and write permissions for everybody.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The next step is to configure the webclient so that the SoundManager can be accesses via webclient. All you have to do is to change the folder definitions at the beginning o f the file soundmanager.php.&lt;/p&gt;
&lt;p&gt;That's it.&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:24:52 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net0dbd53b98d21ed9bd192dc774560451ba45c9412</guid></item><item><title>Home modified by Thomas Sparber</title><link>https://sourceforge.net/p/soundmanager/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/soundmanager/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;&lt;ul class="md-users-list"&gt;&lt;li&gt;&lt;a href="/u/tommy-infancy/"&gt;Thomas Sparber&lt;/a&gt; (admin)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-51a46d581be1ce7a6c8e4312" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&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 08:39:52 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net71d2623b6a27fd4d54668affc83ab0963943fdd5</guid></item></channel></rss>