Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man4 Add another example of recording the output o...



details:   https://anonhg.NetBSD.org/src/rev/797d08316371
branches:  trunk
changeset: 959254:797d08316371
user:      nia <nia%NetBSD.org@localhost>
date:      Sat Feb 06 12:01:57 2021 +0000

description:
Add another example of recording the output of an application.

Explain something that confused me.

diffstat:

 share/man/man4/pad.4 |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 09a1c07d5c8b -r 797d08316371 share/man/man4/pad.4
--- a/share/man/man4/pad.4      Sat Feb 06 11:58:10 2021 +0000
+++ b/share/man/man4/pad.4      Sat Feb 06 12:01:57 2021 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
 .\" All rights reserved.
@@ -46,6 +46,10 @@
 .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 @@
 $ 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



Home | Main Index | Thread Index | Old Index