Re: Setting samplerate on /dev/dsp
From: Pigeon (jah.pigeon_at_ukonline.co.uk)
Date: 11/02/04
- Previous message: John M Flinchbaugh: "Re: [ltp] Problems with automount"
- In reply to: ognjen Bezanov: "Setting samplerate on /dev/dsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 2 Nov 2004 16:06:28 +0000 To: debian-user@lists.debian.org
On Mon, Nov 01, 2004 at 07:55:15PM +0000, ognjen Bezanov wrote:
> Hi all, while not technically debian related it has something to do with
> linux.
>
> I want to capture data from my /dev/dsp device but the devices defaults
> are 8bit mono sound, i want to know how to set the samplerate and
> mono/stereo from the command line, a google search showed me only how to
> do it in C++ (using ioctl). is it possible?
>
> if not is there are program out there which would let me set the
> samplerate before capture?
Digging around in some of my old experimental stuff reveals this
little C program which seems to be for providing access to that ioctl
from the command line. Compile with gcc fmts.c -o fmts (or whatever
else you want to call it). You need to know the hex codes for the
format you want, which your google search probably told you; if it
didn't have a poke through the kernel source and /usr/include/linux.
Disclaimer: it's a long time since I was fiddling with this and I
can't remember whether it actually works or not. I think it did though
:-)
-- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- text/x-csrc attachment: fmts.c
- application/pgp-signature attachment: Digital signature
- Previous message: John M Flinchbaugh: "Re: [ltp] Problems with automount"
- In reply to: ognjen Bezanov: "Setting samplerate on /dev/dsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|