Ankündigung

Einklappen
Keine Ankündigung bisher.

Pulseaudio am Wiregate

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Puh habs hinbekommen.

    Der Fehler war (im nachhinein eigentlich logisch) dass ich in der asound.conf die Hardware Soundkarte nicht definiert hatte, sondern davon ausgegangen bin dass ich sie über die Hardware ID ansprechen kann.

    Mit dem Zusatz:
    Code:
    pcm.cmedia1 {
    type hw
    card 2
    device 0
    }
    und im folgenden vom alsaequal den sound an cmedia1 übergeben.

    im mpd als output das slave.pcm "plug:cmedia" angeben.
    bin am handy werde den Code morgen "sauber" einfügen mit dem es dann gegangen ist.
    Morgen werd ich mich dann auch über pulseaudio hermachen. Jetzt wo es funktionieren könnte.

    Danke für deine Hilfe!

    Gruss

    Edit:
    Mir ging es für den anfang nur erstmal darum die Bässe anzuheben und die Höhen runter zu drücken .
    2 sources über eine Karte folgt die Tage

    Kommentar


      #17
      Ich fang hier mal an meine erfolgreichen Lösungs Ansätze zu dokumentieren:

      1. Problem pulseaudio mag nicht starten
      - ich musste einige Dateirechte anpassen (chown root xxxx)

      in der Shell mit
      Code:
      pulseaudio -k
      pulseaudio
      sagt er ja was ihm gerade nicht passt

      2. mpd will nicht mit Pulseaudio
      mpd user auf "root" und alle Verzeichnisse in /var/lib/mpd von root übernommen. Dann ging es.

      audio_output {
      type "alsa"
      device "equalized"
      name "equal"
      # format "44100:16:2"
      }
      Das verweist auf das in der asound.conf erstellten virtuellen ausgabegerät.

      In der mpd.conf müssen alle mixe einstellungen weiter unten auskommentiert werden.

      3. asound.conf richtig konfigurieren (musste bei mir auch "root" gehören)
      Code:
      pcm.pulse {
          type pulse
      }
       
      ctl.pulse {
          type pulse
      }
       
      pcm.!default {
          type pulse
      }
      ctl.!default {
          type pulse
      }
      4. Problem Höhen und Bässe anpassen mit ladspa
      in der asound.conf (/etc/asound.conf)

      Code:
      pcm.equalized {
        type plug
        slave.pcm "equalizer";
      }
       
      pcm.equalizer {
        type ladspa
       
        # The output from the EQ can either go direct to a hardware device
        # (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
        # to the software mixer shown here.
       #  slave.pcm "plughw:2,0"
       slave.pcm "plug:dmixer"
       
        # Sometimes you may need to specify the path to the plugins,
        # especially if you've just installed them.  Once you've logged
        # out/restarted this shouldn't be necessary, but if you get errors
        # about being unable to find plugins, try uncommenting this.
        path "/usr/lib/ladspa"
       
        plugins [
          {
            label mbeq
            id 1197
            input {
             #this setting is here by example, edit to your own taste
             #bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz,
             #       1250hz, 1750hz, 2500hz, 5000hz, 10000hz, 20000hz
             #range: -70 to 30
              controls [ 5 5 -1 -5 -5 -5 -10 -4 -7 -3 0 -5 -3 -3 ]
            }
          }
        ]
      }
       
       
       
      pcm.pulse {
          type pulse
      }
      das dient nur dazu bei mir die unterschiedlichen Boxen (Küche Wohnzimmer use) Klanglich aufeinander abzustimmen. (zumindest ein bißchen )
      Wenn jemand eine bessere Idee hat nur her damit

      5.Problem
      ***Work in progress***
      2 Sources auf 1 Soundkarte schalten

      Code:
      pcm.mixing {
              type plug
              slave.pcm "dmixer"
      }
       
      pcm.dmixer  {
              type dmix
              ipc_key 1024
              slave {
                      pcm "hw:2,0"
                      period_time 0
                      period_size 1024
                      buffer_size 4096
                      rate 44100
              }
              bindings {
                      0 0
                      1 1
              }
      }
       
      ctl.dmixer {
              type hw
              card 2
      }
      musste ich für jede soundkarte extra machen. Das funktioniert soweit.
      Nun muss ich nur noch die 1.Quelle leiser machen wenn ich die 2. quelle einspiele

      Code:
      mpg123 -a dmixer "Verzeichniss und Name der sounddatei"
      Gruß

      Edit: Evtl könnte mir jemand helfen und mir sagen warum mpd eine Prozessorlast von 36% verursacht (nur 1 Instanz)

      Kommentar


        #18
        asound.conf
        Code:
        pcm_slave.int51audio {
                pcm "hw:0,0"            # or "hw:1,0" for the second card
                channels 6
                rate 44100
                format  "S16_LE"
        }
        
        pcm.front_green {
                type plug;
                slave.pcm {
                        type dshare;
                        ipc_key 8788221;
        		ipc_key_add_uid false;
        		ipc_gid audio;
                        ipc_perm 0660;
                        slave int51audio;
                        bindings [ 0 1 ];
                }
        }
        pcm.surround_black {
                type plug
                slave.pcm {
                        type dshare
                        ipc_key 8788221
        		ipc_key_add_uid false
        		ipc_gid audio
                        ipc_perm 0660
                        slave int51audio
                        bindings [ 2 3 ]
                }
        }
        pcm.center_lfe_orange {
                type plug
                slave.pcm {
                        type dshare
                        ipc_key 8788221
        		ipc_key_add_uid false
        		ipc_gid audio
                        ipc_perm 0660
                        slave int51audio
                        bindings [ 4 5 ]
                }
        }
        pcm.side_white {
                type plug
                slave.pcm {
                        type dshare
                        ipc_key 8788221
        		ipc_key_add_uid false
        		ipc_gid audio
                        ipc_perm 0660
                        slave int51audio
                        bindings [ 6 7 ]
                }
        }
        
        pcm.orange {
            type softvol
            slave.pcm center_lfe_orange
            control {
        	name "Orange"
        	card 0
            }
        }
        
        
        pcm_slave.ext51audio {
        	pcm "hw:1,0"
        	channels 6
                rate 44100
                format  "S16_LE"
        }
        
        pcm.extfront {
            type plug
            slave.pcm {
                type dshare
                ipc_key 8788222
        	ipc_key_add_uid false
        	ipc_gid audio
                ipc_perm 0660
                slave ext51audio
                        bindings [ 0 1 ]
                }
        }
        pcm.usbfront {
            type softvol
            slave.pcm extfront
            control {
        	name "Front"
        	card 1
            }
        }
        pcm.extrear {
            type plug
            slave.pcm {
                type dshare
                ipc_key 8788222
        	ipc_key_add_uid false
        	ipc_gid audio
                ipc_perm 0660
                slave ext51audio
                        bindings [ 4 5 ]
                }
        }
        pcm.usbrear {
            type softvol
            slave.pcm extrear
            control {
        	name "Rear"
        	card 1
            }
        }
        
        pcm.extcenter {
            type plug
            slave.pcm {
                type dshare
                ipc_key 8788222
        	ipc_key_add_uid false 
        	ipc_gid audio
                ipc_perm 0660
                slave ext51audio
                        bindings [ 2 3 ]
                }
        }
        
        pcm.usbcenter {
            type softvol
            slave.pcm extcenter
            control {
        	name "Center"
        	card 1
            }
        }
        
        pcm.!default usbcenter
        /etc/mpd.conf
        Code:
        #user			"mpd"
        
        #log_level 		"verbose"
        music_directory		"/media/ixstore-public/Media/Music"
        playlist_directory	"/media/ixstore-public/Media/playlists"
        db_file			"/var/lib/mpd/tag_cache"
        sticker_file		"/var/lib/mpd/sticker_db"
        #error_file		"/var/log/mpd/errors.log"
        log_file		"/var/log/mpd/mpd.log"
        
        audio_output {
                type                    "null"
                name                    "null"
        }
        
        audio_output {
        	type		"alsa"
        	name		"Schlafzimmer"
        	device		"front_green"		# optional
        #	format		"44100:16:2"		# optional
        	mixer_device	"hw:0"		# optional
        	mixer_control	"Front"			# optional
        }
        
        audio_output {
        	type		"alsa"
        	name		"Küche"
        	device		"usbfront"		# optional
        #	format		"44100:16:2"		# optional
        	mixer_device	"hw:1"		# optional
        	mixer_control	"Front"			# optional
        }
        
        audio_output {
        	type		"alsa"
        	name		"Bad"
        	device		"usbrear"		# optional
        #	format		"44100:16:2"		# optional
        	mixer_device	"hw:1"		# optional
        	mixer_control	"Rear"			# optional
        }
        
        
        bind_to_address			"127.0.0.1"
        audio_output_format             "44100:16:2"
        samplerate_converter            "Fastest Sinc Interpolator"
        #mixer_type                      "alsa"
        #replaygain                      "track"
        #replaygain_preamp               "0"
        volume_normalization            "yes"
        
        max_playlist_length		"100"
        
        
        #audio_buffer_size               "2048"
        #buffer_before_play              "10%"
        filesystem_charset              "UTF-8"
        id3v1_encoding                  "UTF-8"
        /etc/mpd.d/mpd1.conf
        Code:
        pid_file		"/var/run/mpd/pid-1"
        state_file		"/var/lib/mpd/state-1"
        
        port                            "6601"
        zeroconf_enabled                "yes"
        zeroconf_name                   "Küche"
        mit multiple Startscript https://knx-user-forum.de/downloads.php?do=file&id=335
        Nils

        aktuelle Bausteine:
        BusAufsicht - ServiceCheck - Pushover - HS-Insight

        Kommentar


          #19
          /etc/pulse/system.pa
          Code:
          #!/usr/bin/pulseaudio -nF
          #
          # This file is part of PulseAudio.
          #
          # PulseAudio is free software; you can redistribute it and/or modify it
          # under the terms of the GNU Lesser General Public License as published by
          # the Free Software Foundation; either version 2 of the License, or
          # (at your option) any later version.
          #
          # PulseAudio is distributed in the hope that it will be useful, but
          # WITHOUT ANY WARRANTY; without even the implied warranty of
          # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
          # General Public License for more details.
          #
          # You should have received a copy of the GNU Lesser General Public License
          # along with PulseAudio; if not, write to the Free Software Foundation,
          # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
          
          # This startup script is used only if PulseAudio is started in system
          # mode.
          
          ### Automatically load driver modules depending on the hardware available
          .ifexists module-hal-detect.so
          #load-module module-hal-detect
          .else
          ### Alternatively use the static hardware detection module (for systems that
          ### lack HAL support)
          #load-module module-detect
          .endif
          
          ### Load several protocols
          .ifexists module-esound-protocol-unix.so
          load-module module-esound-protocol-unix
          .endif
          load-module module-native-protocol-unix
          load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.178.0/24;
          load-module module-zeroconf-publish
          
          
          ### Automatically restore the volume of streams and devices
          load-module module-stream-restore
          load-module module-device-restore
          
          ### Automatically restore the default sink/source when changed by the user during runtime
          #load-module module-default-device-restore
          
          ### Automatically move streams to the default sink if the sink they are
          ### connected to dies, similar for sources
          load-module module-rescue-streams
          
          ### Make sure we always have a sink around, even if it is a null sink.
          load-module module-always-sink
          
          ### Automatically suspend sinks/sources that become idle for too long
          load-module module-suspend-on-idle
          
          ### Enable positioned event sounds
          load-module module-position-event-sounds
          
          load-module module-alsa-sink device=front_green channels=2 rate=44100
          load-module module-alsa-sink device=surround_black channels=2 rate=44100
          load-module module-alsa-sink device=orange channels=2 rate=44100
          load-module module-alsa-sink device=usbfront channels=2 rate=44100
          load-module module-alsa-sink device=usbrear channels=2 rate=44100
          #load-module module-alsa-sink device=usbcenter channels=2 rate=44100
          Nils

          aktuelle Bausteine:
          BusAufsicht - ServiceCheck - Pushover - HS-Insight

          Kommentar


            #20
            Hallo,
            Hab heut so ziemlich den ganzen tag damit verbracht um pulseaudio zum laugen zu bekommen. Leider stellt sich der einigermaßen quer.

            @NilsS: wird pulseaudio in deiner.konfiguration überhaupt gebraucht? In deiner mpd.conf ist als output immef alsa angegeben?? Und in der asound.conf ist kein "type = pulse" definiert?
            Soweit ich da durchblicke ist das nur alsa oder? (muss zugeben dass sich mir das pulseaudio noch überhaupt nicht erschlossen hat...) Oder inwiefern fuchtelt PA da mit?

            Gruss

            Edit: aus pulseaudio bekomme ich nur sound aus der karte die als.standard definiert ist. Sobald ich die kleinste kleinigket ändere startet der Daemon nicht mehr bzw findet meine karten nicht mehr automatisch, und bei manuellen starten über die default.conf sagt er das die hardware benutzt wird, und daher keine module geladen werden können.

            Kommentar


              #21
              Leider kann ich meine alten Beiträge nicht mehr editieren.

              Ich hab mich Tagelang an pulseaudio versucht, als es dann endlich lief hatte ich eine "stotternde" ausgabe.
              Daher hab ich beschlossen auf ladspa equalizer und dmix zu setzen.

              hier meine aktuelle konfig die funktioniert:

              mpd2.conf:

              Code:
              audio_output {
                      type    "alsa"
                      name    "Kueche"
              #        server  "localhost"   # optional
              #        sink    "alsa_output" # optional
                      device  "equalized"
              #       mixer_control   "Master"                # optional
              }
              
              audio_output {
                      type                    "alsa"
                      name                    "Bad"
                      device                  "dmixerbad"
                     format                  "44100:16:2"
              #       sink                    "alsa_output"
              }
              ...
              audio_buffer_size               "5120"
              ...
              buffer_before_play              "20%"
              ...
              volume_normalization            "yes"
              ...
               http_buffer_size                "2048"
              ...
              alle mixer auskommentiert
              user = root

              asound.conf:

              Code:
              pcm.equalized {
                type plug
                slave.pcm "equalizer"
              }
              
              pcm.equalizer {
                type ladspa
              
                # The output from the EQ can either go direct to a hardware device
                # (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
                # to the software mixer shown here.
              #   slave.pcm "plughw:2,0"
              #       slave.pcm "pulse"
                slave.pcm "plug:dmixer"
              
                # Sometimes you may need to specify the path to the plugins,
                # especially if you've just installed them.  Once you've logged
                # out/restarted this shouldn't be necessary, but if you get errors
                # about being unable to find plugins, try uncommenting this.
                path "/usr/lib/ladspa"
              
                plugins [
                 {
                    label mbeq
                    id 1197
                    input {
                     #this setting is here by example, edit to your own taste
                     #bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz,
                     #       1250hz, 1750hz, 2500hz, 5000hz, 10000hz, 20000hz
                     #range: -70 to 30
                      controls [ 5 7 5 0 0 0 -3 1 -2 2 5 0 0 0 ]
                   }
               }
                ]
              }
              
              
              pcm.mixing {
                      type plug
                      slave.pcm "dmixer"
                      }
              
              
              pcm.dmixer  {
                      type dmix
                      ipc_key 1024
                      slave {
              #       pcm pulse
                              pcm "hw:2,0"
              #               period_time 0
              #               period_size 1024
              #               buffer_size 4096
                              rate 44100
                      }
                      bindings {
                              0 0
                              1 1
                      }
              }
              
              ctl.dmixer {
                      type hw
                      card 2
              }
              
              pcm.mixingbad {
                      type plug
                      slave.pcm "dmixer"
                      }
              
              
              pcm.dmixerbad  {
                      type dmix
                      ipc_key 2048
                      slave {
              #       pcm pulse
                              pcm "hw:1,0"
              #               period_time 0
              #               period_size 1024
              #               buffer_size 4096
                              rate 44100
                      }
                      bindings {
                              0 0
                              1 1
                      }
              }
              
              ctl.dmixerbad {
                      type hw
                      card 1
              }
              quellen wechsel über shell-cmd in linknx mit dem ich telnet scripte auslöse. (für jede aktion eins je player)

              Eine bitte hätte ich an jemanden der sich mit Perl auskennt:

              Ich wollte mir eine morgendlich "variable" Ansage erstellen (im WG Plugin mit mpg123)
              dazu müsste ich die aktuelle und vorhergesagte aussentemp iwie über google:
              auf die Weise von Chris M
              Code:
               wget "http://translate.google.de/translate_tts?ie=UTF-8&q=die vorhergesagte Temperatur für heute beträgt" --keep-session-cookies --user-agent=sag_ich_nicht -O vorhersagetemp.mp3
              abrufen.
              Da die Datei ja immer gleich heißt sollte das funktionieren.
              Nur wie bekomme ich den Befehl:
              Code:
              cat /var/lib/aussentemp
              sinnvoll in den 1. Befehl das er nur die Zahlen da rein schreibt????

              einspielen wollte ich sie mit mpg123 indem ich vorher den Radio um 40% leiser mache -> einspielen -> wieder lauter.

              Es funktioniert in linknx schon alles zum einspielen nur Perl und das auslesen der datei fuchst mich

              Gruß

              Edit:
              Die 40% CPU Last verursacht das LADSPA. Und wird bei gelegenheit mit nem ordentlichen Verstärker (mit equalizer) ersetzt.
              MPD ohne Ladspa hat nur 17% CPU Last

              Kommentar


                #22
                Ich kann zwar Dein Setup nicht testen, aber unter einer vernünftigen Shell geht das per Backticks, probier mal:
                Code:
                echo "hallo du da, jetzt ist `date` - oder etwa nicht?"
                TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

                Kommentar


                  #23
                  Ja mit Date geht das.
                  Aber ich brauche die Zahl aus meinen persistence Files (linknx).
                  Datei ohne endung mit Textinhalt. z.b 16 für 16°C und "stürmisch" für Vorhersagen (Googleweather bzw worldweather) und den Text brauch ich in nem Plugin (perl) oder in einem einfachen shell script das ich über linknx auslösen kann.

                  Gruß

                  Edit: ist nicht mit dem mpd setup verbunden. Die Datei wird dann mit mpg123 -a [da wos spielen soll] Dateiname.mp3 aufgerufen (hab gerade gelesen dass mpg123 keine Playlists mag. evtl wird der Player noch getauscht.

                  Edit:
                  werde es vorerst über folgendes shell script erledigen lassen:

                  Code:
                  #!/bin/sh
                  
                  extr=`cat /var/lib/aussen_temp`
                  shcmd=`wget "http://translate.google.de/translate_tts?ie=UTF-8&q=$extr" --keep-session-cookies --user-agent=sag_ich_nicht -O vorhersagetemp.mp3`
                  echo $shcmd

                  Kommentar


                    #24
                    Hm, ich verstehe immer noch nicht, wo das Problem liegt. In den Backticks kannst Du wunderbar weitere Schweinereien machen, wie z.B.

                    Code:
                    echo "hallo du da, jetzt ist `date | sed 's/CEST/Central European Standard Time/'` - oder etwa nicht?"
                    (Und das, wo meine Zeiten einen seitenlangen Einzeiler zu schreiben schon ein paar Jahre her sind...)

                    Nachtrag:
                    Das cat geht natürlich auch innerhalb der Backticks. Hier sogar auch noch mit sed über eine Pipe gekoppelt (was man natürlich auch weglassen kann):

                    Code:
                    echo "Die load ist zur Zeit `cat /proc/loadavg | sed 's/ .*//'`"
                    TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

                    Kommentar


                      #25
                      Vermutlich scheitert es daran, dass ich "sed" nicht kenne
                      werd mich da mal schlau machen

                      ich hab 'date' in der shell getestet und da gibt er das aktuelle datum aus. Ich dachte du meinst das. sry

                      Ich muss mich da jetzt durchkämpfen hab mich Jahrelang davor gedrückt das verstehen zu müssen (Windows sei dank geht das relativ gut)

                      Gruß und Danke

                      Kommentar


                        #26
                        Zitat von vlamers Beitrag anzeigen
                        Vermutlich scheitert es daran, dass ich "sed" nicht kenne
                        sed ist das Schweizer Armeemesser der Einzeiler... Wichtigste Eigenschaft: damit kannst Du reguläre Ausdrücke auf Streams (wie einer Datei oder einer Programm-Ausgabe) loslassen.

                        Geht aber auch wunderbar ohne:
                        Code:
                        $ echo "Der Inhalt der \"Datei\" /proc/loadavg ist \"`cat /proc/loadavg`\""
                        Der Inhalt der "Datei" /proc/loadavg ist "0.01 0.08 0.12 2/464 3913"
                        (Beim Code oben wird halt alles ab dem ersten Leerzeichen entfernt)
                        TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

                        Kommentar


                          #27
                          Noch Interesse ?

                          Ich hab inzwischen PulseAudio am laufen (du hattest Recht, hatte ich in der Config garnicht aktiviert, hab den Rechner aber neu gemacht und virtualisiert)

                          PulseAudio Sinks per Avahi im Netzwerk veröffentlicht und können von den Ubuntu Clients "einfach" ausgewählt werden UND gleichzeitig vom MPD genutzt werden.

                          Equalizer hab ich aber noch nicht drin.

                          espeak geht mit pacat auch.
                          Nils

                          aktuelle Bausteine:
                          BusAufsicht - ServiceCheck - Pushover - HS-Insight

                          Kommentar


                            #28
                            Natürlich
                            Darf ich fragen was für Ubuntu Clients du verwendest? (Nur Notebook/Pc oder auch bestimmte Tablets? Wenn Tablet hast du ne empfehlung?)

                            Wäre nett wenn du das hier einstellen würdest!

                            Gruß

                            Kommentar


                              #29
                              Ich Poste mal Schritt für Schritt

                              Alsa Konfiguration:


                              /etc/asound.conf
                              Code:
                              ## 7.1 Karte
                              pcm_slave.int51audio {
                                      pcm "hw:0,0"            # or "hw:1,0" for the second card
                                      channels 8
                                      rate 44100
                                      format  "S16_LE"
                              }
                              
                              pcm.front_green {
                                      type plug;
                                      slave.pcm {
                                              type dshare;
                                              ipc_key 8788221;
                              		ipc_key_add_uid false;
                              		ipc_gid audio;
                                              ipc_perm 0660;
                                              slave int51audio;
                                              bindings [ 0 1 ];
                                      }
                              }
                              pcm.surround_black {
                                      type plug
                                      slave.pcm {
                                              type dshare
                                              ipc_key 8788221
                              		ipc_key_add_uid false
                              		ipc_gid audio
                                              ipc_perm 0660
                                              slave int51audio
                                              bindings [ 2 3 ]
                                      }
                              }
                              pcm.center_lfe_orange {
                                      type plug
                                      slave.pcm {
                                              type dshare
                                              ipc_key 8788221
                              		ipc_key_add_uid false
                              		ipc_gid audio
                                              ipc_perm 0660
                                              slave int51audio
                                              bindings [ 4 5 ]
                                      }
                              }
                              pcm.side_white {
                                      type plug
                                      slave.pcm {
                                              type dshare
                                              ipc_key 8788221
                              		ipc_key_add_uid false
                              		ipc_gid audio
                                              ipc_perm 0660
                                              slave int51audio
                                              bindings [ 6 7 ]
                                      }
                              }
                              
                              ## Mix von Center und LFE
                              pcm.orange {
                                  type softvol
                                  slave.pcm center_lfe_orange
                                  control {
                              	name "Orange"
                              	card 0
                                  }
                              }
                              
                              
                              ## default ist der NULL Sink vom Pulseaudio
                              pcm.pulse {
                                  type pulse
                              }
                              ctl.pulse {
                                  type pulse
                              }
                              pcm.!default {
                                  type pulse
                              }
                              ctl.!default {
                                  type pulse
                              }

                              WICHTIG: Kein Dienst darf ALSA verwenden außer Pulseaudio
                              Nils

                              aktuelle Bausteine:
                              BusAufsicht - ServiceCheck - Pushover - HS-Insight

                              Kommentar


                                #30
                                Pulseaudio:


                                /etc/pulse/daemon.conf
                                Code:
                                # This file is part of PulseAudio.
                                #
                                # PulseAudio is free software; you can redistribute it and/or modify
                                # it under the terms of the GNU Lesser General Public License as published by
                                # the Free Software Foundation; either version 2 of the License, or
                                # (at your option) any later version.
                                #
                                # PulseAudio is distributed in the hope that it will be useful, but
                                # WITHOUT ANY WARRANTY; without even the implied warranty of
                                # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
                                # General Public License for more details.
                                #
                                # You should have received a copy of the GNU Lesser General Public License
                                # along with PulseAudio; if not, write to the Free Software
                                # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
                                # USA.
                                
                                ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
                                ## more information. Default values a commented out.  Use either ; or # for
                                ## commenting.
                                
                                daemonize = yes
                                ; fail = yes
                                ; allow-module-loading = yes
                                ; allow-exit = yes
                                ; use-pid-file = yes
                                ; system-instance = no
                                ; enable-shm = yes
                                ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
                                ; lock-memory = no
                                ; cpu-limit = no
                                
                                ; high-priority = yes
                                ; nice-level = -11
                                
                                ; realtime-scheduling = yes
                                ; realtime-priority = 5
                                
                                ; exit-idle-time = 20
                                ; scache-idle-time = 20
                                
                                ; dl-search-path = (depends on architecture)
                                
                                ; load-default-script-file = yes
                                ; default-script-file = 
                                
                                ; log-target = auto
                                ; log-level = notice
                                ; log-meta = no
                                ; log-time = no
                                ; log-backtrace = 0
                                
                                resample-method = speex-float-1
                                ; enable-remixing = yes
                                ; enable-lfe-remixing = no
                                
                                flat-volumes = no
                                
                                ; rlimit-fsize = -1
                                ; rlimit-data = -1
                                ; rlimit-stack = -1
                                ; rlimit-core = -1
                                ; rlimit-as = -1
                                ; rlimit-rss = -1
                                ; rlimit-nproc = -1
                                ; rlimit-nofile = 256
                                ; rlimit-memlock = -1
                                ; rlimit-locks = -1
                                ; rlimit-sigpending = -1
                                ; rlimit-msgqueue = -1
                                ; rlimit-nice = 31
                                ; rlimit-rtprio = 9
                                ; rlimit-rttime = 1000000
                                
                                ; default-sample-format = s16le
                                ; default-sample-rate = 44100
                                ; default-sample-channels = 2
                                ; default-channel-map = front-left,front-right
                                
                                default-fragments = 8
                                default-fragment-size-msec = 10
                                /etc/pulse/system.pa
                                Code:
                                #!/usr/bin/pulseaudio -nF
                                #
                                # This file is part of PulseAudio.
                                #
                                # PulseAudio is free software; you can redistribute it and/or modify it
                                # under the terms of the GNU Lesser General Public License as published by
                                # the Free Software Foundation; either version 2 of the License, or
                                # (at your option) any later version.
                                #
                                # PulseAudio is distributed in the hope that it will be useful, but
                                # WITHOUT ANY WARRANTY; without even the implied warranty of
                                # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
                                # General Public License for more details.
                                #
                                # You should have received a copy of the GNU Lesser General Public License
                                # along with PulseAudio; if not, write to the Free Software Foundation,
                                # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
                                
                                # This startup script is used only if PulseAudio is started in system
                                # mode.
                                
                                
                                ### Esound bei Bedarf laden
                                .ifexists module-esound-protocol-unix.so
                                load-module module-esound-protocol-unix
                                .endif
                                
                                ## Network Audio 
                                ## Die IP's anpassen für die Rechner die keine Pulse-Cookie verwenden sollen
                                #load-module module-native-protocol-unix
                                load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.178.0/24;
                                
                                ## CLI
                                load-module module-cli-protocol-tcp listen=127.0.0.1 port=4712
                                #load-module module-cli-protocol-tcp
                                
                                
                                ### Automatically restore the volume of streams and devices
                                load-module module-stream-restore
                                load-module module-device-restore
                                
                                ### Automatically restore the default sink/source when changed by the user during runtime
                                load-module module-default-device-restore
                                
                                ### Automatically move streams to the default sink if the sink they are
                                ### connected to dies, similar for sources
                                load-module module-rescue-streams
                                
                                ### Make sure we always have a sink around, even if it is a null sink.
                                load-module module-always-sink
                                
                                ### Automatically suspend sinks/sources that become idle for too long
                                load-module module-suspend-on-idle
                                
                                ### Enable positioned event sounds
                                #load-module module-position-event-sounds
                                
                                ## Default NULL Sink
                                load-module module-null-sink
                                
                                ## ALSA Sinks
                                load-module module-alsa-sink name=Kueche sink_name=Kueche device=front_green channels=2 rate=44100 sink_properties=device.description=PA_Kueche
                                load-module module-alsa-sink name=KindA sink_name=KindA device=orange channels=2 rate=44100 sink_properties=device.description=PA_KindA
                                load-module module-alsa-sink name=KindB sink_name=KindB device=surround_black channels=2 rate=44100 sink_properties=device.description=PA_KindB
                                load-module module-alsa-sink name=Bad sink_name=Bad device=side_white channels=2 rate=44100 sink_properties=device.description=PA_Bad
                                
                                ## Combines 
                                load-module module-combine sink_name=oben slaves=KindA,KindB adjust_time=0
                                load-module module-combine sink_name=unten slaves=Kueche,Bad adjust_time=0
                                
                                load-module module-combine sink_name=alle slaves=Kueche,KindA,KindB,Bad adjust_time=0
                                
                                ## Equalizer
                                load-module module-ladspa-sink sink_name=KuecheEQ sink_properties=device.description=PA_KuecheEQ master=Kueche plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
                                load-module module-ladspa-sink sink_name=KindAEQ sink_properties=device.description=PA_KindAEQ master=KindA plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
                                load-module module-ladspa-sink sink_name=KindBEQ sink_properties=device.description=PA_KindBEQ master=KindB plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
                                load-module module-ladspa-sink sink_name=BadEQ sink_properties=device.description=PA_BadEQ master=Bad plugin=mbeq_1197 label=mbeq control=11.621622,10,4.594594,2.702703,0,0,-1.621622,-0.270270,-5.405406,-3.513514,-8.648648,-5.675676,-4.054054,1.351351,9.189189
                                
                                ## per AVAHI veröffentlichen
                                load-module module-zeroconf-publish
                                #load-module module-zeroconf-discover
                                
                                ## Default auf NULL
                                set-default-sink null

                                /etc/default/pulseaudio
                                Code:
                                PULSEAUDIO_SYSTEM_START=1
                                
                                # Prevent users from dynamically loading modules into the PulseAudio sound
                                # server. Dynamic module loading enhances the flexibilty of the PulseAudio
                                # system, but may pose a security risk.
                                # 0 = no, 1 = yes
                                DISALLOW_MODULE_LOADING=1

                                kleiner Hack, weil pulseaudio beim starten immer einmal abschmiert.
                                /etc/rc.local
                                Code:
                                #!/bin/sh -e
                                #
                                # rc.local
                                #
                                # This script is executed at the end of each multiuser runlevel.
                                # Make sure that the script will "exit 0" on success or any other
                                # value on error.
                                #
                                # In order to enable or disable this script just change the execution
                                # bits.
                                #
                                # By default this script does nothing.
                                
                                ## Wenn Pulseaudio nicht startet 5 Sek warten und nochmal starten
                                sleep 2
                                [ -z "`ps -ef | grep pulseaudio | grep -v grep`" ] && ( sleep 5; sh /etc/init.d/pulseaudio start )
                                exit 0
                                Nils

                                aktuelle Bausteine:
                                BusAufsicht - ServiceCheck - Pushover - HS-Insight

                                Kommentar

                                Lädt...
                                X