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

Re: OT - How to save real audio files?



cyrus@linuxfan.com (Cyrus Patel) writes:

> This is slightly offtopic, but I just downloaded Real Player and I was wondering
> if there was a way to save real audio file locally so I don't have to fire up my 
> ppp connection just to listen to .ram files.
> 
You might want to consider this:

------------------------ snip ------------------------
Begin3
Title:			paudio
Version:		0.1
Entered-date:		13JAN98
Description:		paudio, or /proc/audio, is a file that
			when read from, will return the data that is
			currently being written to the audio device
			(/dev/audio or /dev/dsp).  This is useful if an
			audio application doesn't allow you to save an
			audio file.  Note that to use this effectively,
			a moderate knowledge of Linux modules is needed,
			as well as a moderate knowledge of digital audio
			techniques.  Feel free to email me with
			questions (although I gaurentee no answers!).

Keywords:		Linux, kernel, loadable module, sound, audio,
			/proc, /dev/audio, /dev/dsp, audio file
Author:			jdimpson@acm.org (Jeremy D. Impson)
Maintained-by:		jdimpson@acm.org (Jeremy D. Impson)
Primary-site:		http://web.syr.edu/~jdimpson/proj/
				  26  kb paudio-0.1.tgz
Alternate-site:		ftp://camelot.syr.edu/pub/linux/paudio-0.1.tgz
Original-site:		ftp://camelot.syr.edu/pub/linux/paudio-0.1.tgz

Platforms:		Linux
Copying-policy:		GPL
End
------------------------ snip ------------------------


------------------------ snip ------------------------
To: linux-announce@NEWS.ORNL.GOV
From: jdimpson@syr.edu
Followup-to: comp.os.linux.misc
Subject: paudio 0.1 -- read data from soundcard to file ("Jeremy D. Impson")


paudio, or /proc/audio, is a loadable kernel modules and kernel patch
that allows you to read and save a copy of the data currently being
played by the soundcard.  This allows you to save any data being played,
regardless of what software is used to play it, or what format the data
is in.

Some audio streaming software doesn't allow audio data to be saved to
disk, and some use formats whose specifications are not publically
available. This is a way around these problems.

This is more of an exercise in writing kernel code than it is useful
software, and I don't doubt there are better solutions than this one
(like using ptrace, perhaps).  Anyone interested in learning about the
/proc filesystem, about writing kernel modules, or understanding some of
the soundcard source code may find this useful. 

In fact, one must be fairly competent at understanding digital sound file
formats in order to use paudio effectively, but feel free to send any
questions to me. 

There are a few bugs reported in the README, and I would appreciate it if
any experienced kernel hackers would look at these reports and at my
code, and give me advice or feedback. 

http://web.syr.edu/~jdimpson/proj/paudio-0.1.tgz
ftp://camelot.syr.edu/pub/linux/paudio-0.1.tgz

paudio requires a recent Linux kernel, and you must have the kernel
source code, as it includes a kernel patch.  Furthermore, you must have
root access to load it.

paudio does not work for MIDI sound.

The author is your's truly, Jeremy D. Impson <jdimpson@acm.org>

--Jeremy

------------------------ snip ------------------------


Reply to: