Hi tech@

Based on the thread [http://marc.info/?t=146015363500001] now following
up with a much improved diff by valuable patient guidance and very fine
feedback from ratchov@ tj@ tb@ that got accepted in as FAQ section 13.5

Learned a lot from the iterative process, thank you all & best regards,
Anton

$ diff -u faq13.html-{1.178,1.179}
--- faq13.html-1.178    Tue Apr 12 06:35:57 2016
+++ faq13.html-1.179    Wed Apr 13 21:39:35 2016
@@ -52,19 +52,21 @@
 <li><a href="#playaudio"  >13.2 - Playing different kinds of audio</a>
 <li><a href="#playCD"     >13.3 - How can I play audio CDs in OpenBSD?</a>
 <li><a href="#recordaudio">13.4 - Can I use OpenBSD to record audio 
samples?</a>
-<li><a href="#audioserver">13.5 - How do I set up an audio server?</a>
-<li><a href="#audioprob"  >13.6 - What can I do if I have audio problems?</a>
-<li><a href="#midi"      >13.7 - How do I use my MIDI instruments?</a>
-<li><a href="#playDVD"    >13.8 - How can I playback video DVDs in OpenBSD?</a>
-<li><a href="#burnCD"     >13.9 - How do I burn CDs and DVDs?</a>
+<li><a href="#recordmon"  >13.5 - Recording a monitor mix of all audio
+                           playback</a>
+<li><a href="#audioserver">13.6 - How do I set up an audio server?</a>
+<li><a href="#audioprob"  >13.7 - What can I do if I have audio problems?</a>
+<li><a href="#midi"       >13.8 - How do I use my MIDI instruments?</a>
+<li><a href="#playDVD"    >13.9 - How can I playback video DVDs in OpenBSD?</a>
+<li><a href="#burnCD"     >13.10 - How do I burn CDs and DVDs?</a>
 <ul>
-  <li><a href="#burnIntro">13.9.1 - Introduction and basic setup</a>
-  <li><a href="#writeCD"  >13.9.2 - Writing CDs</a>
-  <li><a href="#writeDVD" >13.9.3 - Writing DVDs</a>
+  <li><a href="#burnIntro">13.10.1 - Introduction and basic setup</a>
+  <li><a href="#writeCD"  >13.10.2 - Writing CDs</a>
+  <li><a href="#writeDVD" >13.10.3 - Writing DVDs</a>
 </ul>
-<li><a href="#javaplugin" >13.10 - Can I have Java support in my web browser?
+<li><a href="#javaplugin" >13.11 - Can I have Java support in my web browser?
                            (amd64 only)</a>
-<li><a href="#flashplugin">13.11 - Can I have Flash support in my web
+<li><a href="#flashplugin">13.12 - Can I have Flash support in my web
                            browser?</a>
 </ul>
 <hr>
@@ -268,8 +270,31 @@
 silent on some systems.
 However, pre-amplifying can also be quite loud on other systems.
 
-<h2 id="audioserver">13.5 - How do I set up an audio server?</h2>
+<h2 id="recordmon">13.5 - Recording a monitor mix of all audio playback</h2>
 
+A monitoring stream records combined audio output from all playback devices,
+allowing you to duplicate or save anything going through the audio subsystem.
+This feature can be useful for screencasts or any kind of live audio mixing.
+
+<p>
+Create the monitor sub-device <tt>mon</tt> for
+<a href="http://man.openbsd.org/?query=sndiod";>sndiod(8)</a> by using:
+
+<blockquote><pre>
+# <b>rcctl set sndiod flags -s default -m play,mon -s mon</b>
+# <b>rcctl restart sndiod</b>
+</pre></blockquote>
+
+Configure your program to record audio from the <tt>snd/0.mon</tt> device:
+
+<blockquote><pre>
+$ <b>aucat -f snd/0.mon -o file.wav</b>
+</pre></blockquote>
+
+At this point, whatever your system plays is recorded in <tt>file.wav</tt>.
+
+<h2 id="audioserver">13.6 - How do I set up an audio server?</h2>
+
 <!-- This section Copyright (c) 2009 Alexandre Ratchov -->
 
 <h3>What latency do I need?</h3>
@@ -372,7 +397,7 @@
 With the default configuration, sndiod will consume around 200kB/s of
 network bandwidth.
 
-<h2 id="audioprob">13.6 - What can I do if I have audio problems?</h2>
+<h2 id="audioprob">13.7 - What can I do if I have audio problems?</h2>
 
 If you do not hear anything when playing audio, it's possible there
 is a mixer control turned to low or simply muted.
@@ -429,7 +454,7 @@
 of <tt>mixerctl -v</tt> and the output of the above test for DAC
 processing.
 
-<h2 id="midi">13.7 - How do I use my MIDI instruments?</h2>
+<h2 id="midi">13.8 - How do I use my MIDI instruments?</h2>
 
 The Musical Instrument Digital Interface (MIDI) protocol provides a
 standardized and efficient means to represent musical performance
@@ -536,7 +561,7 @@
 transforming MIDI data can be achieved using the <tt>rmidish</tt>
 utility bundled in the <tt>audio/midish</tt> port.
 
-<h2 id="playDVD">13.8 - How can I playback video DVDs in OpenBSD?</h2>
+<h2 id="playDVD">13.9 - How can I playback video DVDs in OpenBSD?</h2>
 
 OpenBSD supports DVD media through the ISO 9660 filesystem, which
 is also used on CD-ROMs, and also through the
@@ -573,9 +598,9 @@
 This should not be much of a problem when playing DVDs on a computer.
 </ul>
 
-<h2 id="burnCD">13.9 - How do I burn CDs and DVDs?</h2>
+<h2 id="burnCD">13.10 - How do I burn CDs and DVDs?</h2>
 
-<h3 id="burnIntro">13.9.1 - Introduction and basic setup</h3>
+<h3 id="burnIntro">13.10.1 - Introduction and basic setup</h3>
 
 You should first make sure your CD/DVD writer has been recognized and
 configured by the kernel.
@@ -651,7 +676,7 @@
 <li>Not every DVD writer supports every DVD format, see below.
 </ul>
 
-<h3 id="writeCD">13.9.2 - Writing CDs</h3>
+<h3 id="writeCD">13.10.2 - Writing CDs</h3>
 
 <h4>Creating data CD-ROMs</h4>
 
@@ -762,7 +787,7 @@
 </pre></blockquote>
 </ol>
 
-<h3 id="writeDVD">13.9.3 - Writing DVDs</h3>
+<h3 id="writeDVD">13.10.3 - Writing DVDs</h3>
 
 There are a few important things about DVD you should know about before
 proceeding to write your own DVDs.
@@ -958,7 +983,7 @@
 The DVD writer falls back to a lower pace than the maximum to reduce the
 risk of buffer underruns.
 
-<h2 id="javaplugin">13.10 - Can I have Java support in my web browser?
+<h2 id="javaplugin">13.11 - Can I have Java support in my web browser?
 (amd64 only)</h2>
 
 Just install the <tt>icedtea-web</tt> package.
@@ -971,7 +996,7 @@
 browsers disable Java support by default.
 You will be prompted for your explicit consent to run applets via icedtea-web.
 
-<h2 id="flashplugin">13.11 - Can I have Flash support in my web browser?</h2>
+<h2 id="flashplugin">13.12 - Can I have Flash support in my web browser?</h2>
 
 The Flash plugin is distributed by Adobe in binary form only.
 Adobe does not provide a native OpenBSD plugin.
@@ -980,9 +1005,11 @@
 <p>
 If you are just looking to watch Flash videos from common websites,
 there are a number of options in packages, including
-<a href="https://github.com/monsieurvideo/get-flash-videos";>
-get-flash-videos</a>, <a href="http://flavio.tordini.org/minitube";>minitube</a>
-and <a href="http://rg3.github.com/youtube-dl/";>youtube-dl</a>.
+<a 
href="https://github.com/monsieurvideo/get-flash-videos";>get-flash-videos</a>,
+<a href="http://flavio.tordini.org/minitube";>minitube</a>,
+<a href="http://docs.livestreamer.io/";>livestreamer</a>,
+and
+<a href="http://rg3.github.com/youtube-dl/";>youtube-dl</a>.
 
 <p>
 <hr>

$ diff -u index.html-{1.448,1.449}
--- index.html-1.448    Tue Apr 12 08:08:59 2016
+++ index.html-1.449    Wed Apr 13 21:39:43 2016
@@ -264,19 +264,21 @@
                                      OpenBSD?</a>
 <li><a href="faq13.html#recordaudio">13.4 - Can I use OpenBSD to record
                                      audio samples?</a>
-<li><a href="faq13.html#audioserver">13.5 - How do I set up an audio
+<li><a href="faq13.html#recordmon"  >13.5 - Recording a monitor mix of all
+                                     audio playback</a>
+<li><a href="faq13.html#audioserver">13.6 - How do I set up an audio
                                      server?</a>
-<li><a href="faq13.html#audioprob"  >13.6 - What can I do if I have audio
+<li><a href="faq13.html#audioprob"  >13.7 - What can I do if I have audio
                                      problems?</a>
-<li><a href="faq13.html#midi"       >13.7 - How do I use my MIDI
+<li><a href="faq13.html#midi"       >13.8 - How do I use my MIDI
                                      instruments?</a>
-<li><a href="faq13.html#playDVD"    >13.8 - How can I playback video
+<li><a href="faq13.html#playDVD"    >13.9 - How can I playback video
                                      DVDs in OpenBSD?</a>
-<li><a href="faq13.html#burnCD"     >13.9 - How do I burn CDs and
+<li><a href="faq13.html#burnCD"     >13.10 - How do I burn CDs and
                                      DVDs?</a>
-<li><a href="faq13.html#javaplugin" >13.10 - Can I have Java support in
+<li><a href="faq13.html#javaplugin" >13.11 - Can I have Java support in
                                      my web browser? (amd64 only)</a>
-<li><a href="faq13.html#flashplugin">13.11 - Can I have Flash support in
+<li><a href="faq13.html#flashplugin">13.12 - Can I have Flash support in
                                      my web browser?</a>
 </ul>
 
@@ -359,7 +361,7 @@
 <p>
 <small>
 <em>OpenBSD FAQ Copyright &copy; 1998-2016 OpenBSD</em><br>
-$OpenBSD: index.html,v 1.448 2016/03/30 22:07:41 tb Exp $
+$OpenBSD: index.html,v 1.449 2016/04/13 16:38:18 tj Exp $
 <br>
 <!-- "If you don't find it in the index, look very carefully through the
     entire catalogue."<br>

Reply via email to