Hi tech@ Based on recommendation from ratchov@ to put his advice for recording an audio output monitor in the FAQ as 13.5:
[http://marc.info/?m=146039522014603] Proposing the diffs to FAQ 13 here, and the FAQ index below [1]. Hope this goes mangle-free by the mail client, ready to resend if anything. Comments, OK? Regards, Anton $ diff -u faq13.html{-1.178,} --- faq13.html-1.178 Tue Apr 12 06:35:57 2016 +++ faq13.html Tue Apr 12 08:02:50 2016 @@ -52,19 +52,20 @@ <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 an audio output monitor</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 +269,45 @@ 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 an audio output monitor</h2> +<!-- explained by Alexandre Ratchov --> + +An audio monitor is used to record sound from the master audio output for duplicating and saving everything going out of the audio sub-system (voice over, screencast, live mix etc). + +<p> +First you have to create a (record-what-you-hear) monitoring device <tt>mon</tt>, for instance add these: + +<blockquote><pre> +sndiod_flags="-s default -m play,mon -s mon" +</pre></blockquote> + +to <tt>/etc/rc.conf.local</tt>, or adjust the flags using the +<a href="http://man.openbsd.org/?query=rcctl">rcctl(8)</a> +utility. + +<p> +See <tt>-m</tt> and <tt>-s</tt> options in <a href="http://man.openbsd.org/?query=sndiod">sndiod(8)</a> man page for more details. + +<p> +To restart sndiod (as root) do: + +<blockquote><pre> +# <b>rcctl restart sndiod</b> +</pre></blockquote> + +<p> +Configure your favourite program to record audio from <tt>snd/0.mon</tt> device: + +<blockquote><pre> +$ <b>aucat -f snd/0.mon -o file.wav</b> +</pre></blockquote> + +<p> +At this point whatever your system plays is recorded into <tt>file.wav</tt> file. + +<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 +410,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 +467,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 +574,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 +611,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 +689,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 +800,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 +996,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 +1009,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. [1] $ diff -u index.html{-1.448,} --- index.html-1.448 Tue Apr 12 08:08:59 2016 +++ index.html Tue Apr 12 08:13:37 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 an audio output + monitor</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>