Module Name:    src
Committed By:   nia
Date:           Sat Feb  6 12:01:58 UTC 2021

Modified Files:
        src/share/man/man4: pad.4

Log Message:
Add another example of recording the output of an application.

Explain something that confused me.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/pad.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/pad.4
diff -u src/share/man/man4/pad.4:1.7 src/share/man/man4/pad.4:1.8
--- src/share/man/man4/pad.4:1.7	Sat Feb  6 11:58:10 2021
+++ src/share/man/man4/pad.4	Sat Feb  6 12:01:57 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: pad.4,v 1.7 2021/02/06 11:58:10 nia Exp $
+.\" $NetBSD: pad.4,v 1.8 2021/02/06 12:01:57 nia Exp $
 .\"
 .\" Copyright (c) 2007 Jared D. McNeill <jmcne...@invisible.ca>
 .\" All rights reserved.
@@ -46,6 +46,10 @@ pseudo-device driver receives data from
 .Pa /dev/audioN
 and feeds the raw PCM output to
 .Pa /dev/padN .
+.Pa /dev/audioN
+is created once
+.Pa /dev/padN
+is opened.
 .Bl -item
 .It
 .Pa /dev/audioN
@@ -58,6 +62,12 @@ The following example streams an MP3 to 
 $ rtunes - < /dev/pad0 &
 $ mpg123 -a /dev/audio1 mozart.mp3
 .Ed
+.Pp
+Record the output of an application (in this case, audioplay):
+.Bd -literal -offset indent
+$ ffmpeg -f s16le -ar 44100 -ac 2 -i /dev/pad0 output.wav
+$ audioplay -d /dev/audio1 input.wav
+.Ed
 .Sh SEE ALSO
 .Xr audio 4
 .Sh HISTORY

Reply via email to