Re: Setting samplerate on /dev/dsp

From: Pigeon (jah.pigeon_at_ukonline.co.uk)
Date: 11/02/04

  • Next message: Werner Otto: "Cisco Aironet C350 & airodump"
    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


  • Next message: Werner Otto: "Cisco Aironet C350 & airodump"

    Relevant Pages

    • Re: event viewer error..
      ... Using MSCONFIG is one way to check for MS/non-MS services but it's possible ... for a rogue file to masquerade as an MS service. ... Check the command line for the service. ... A Google search using that service's name as the search term brings up ...
      (microsoft.public.windowsxp.general)
    • Re: Liveconnect missing?
      ... where to get Liveconnect to download. ... Its not on my system when i use the import command. ... Anyway, I made a quick Google search, and found this page: ... Install the JVM, check in the lib subdirectory, and then follow the instructions at ...
      (comp.lang.javascript)
    • Re: Writing an img file to a pen drive
      ... post facto) google search brought me rather quickly to the soultion I ... Use the following command: ... And write to Fedora Core about the confusing README file: ...
      (comp.os.linux.setup)
    • DocuSafe "Search" SQL Injection
      ... Shout Outs: AurA, imm02tal ... Vendor: http://gartha.net ... Google Search: intitle:Corporate Contact System ... insert your command in the section "search" ...
      (Bugtraq)
    • Re: How to mount and read cdimage before burning
      ... >> Following command works on Linux but not on Freebsd ... >> Google search brought following link ...
      (freebsd-questions)