C Programming for Sound Processing

This is a discussion on C Programming for Sound Processing within the C Programming forums, part of the General Programming Boards category; To those who know something about programming for acoustics... Can anyone tell me where I can find more information about ...

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    8

    C Programming for Sound Processing

    To those who know something about programming for acoustics...

    Can anyone tell me where I can find more information about how to process sound in C, and how to manipulate it? I am not new to C, but I am new to sound processing. I'd like to start my own C project involving surround sound. Unfortunately, I do not know where to begin.

    Tks, Irno.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I dunno of anything cross-platform, but on linux check out the alsa library (<alsa/asoundlib.a>).

    You should understand that sound in computers is encoded as pcm (pulse-code modulation) data. A .wav file is just straight pcm data with a header on it; compressed formats like .mp3 take pcm data and encrypt/compress it.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    994
    You need to be a little more specific...what are you looking to do exactly?

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    8
    Quote Originally Posted by Epy View Post
    You need to be a little more specific...what are you looking to do exactly?
    Thanks for the question, Epy. I am looking for a place to start for learning sound generation, processing and filtering with C. Can you suggest an idea for a project that would help me learn some basics. Are there any applications, etc., to program that would help me?

    Thanks.
    Last edited by Irno; 03-25-2010 at 10:28 PM.

  5. #5
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Usually sound generation/alteration is more related to math than any specific programming language. Do you have any scientific knowledge of signal processing and the sort and are just looking for a good implementation environment?

  6. #6
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    994
    Quote Originally Posted by Irno View Post
    Thanks for the question, Epy. I am looking for a place to start for learning sound generation, processing and filtering with C. Can you suggest an idea for a project that would help me learn some basics. Are there any applications, etc., to program that would help me?

    Thanks.
    This is actually what got me interested in C again...I did this last year: Hazudra Fodder: pwtracker: An .au file creator written in C99

    All you're really looking at is creating arrays to hold amplitude values and then dumping them out to a file or another output device.

    libsndfile - library that takes an array and dumps out a .wav file, among other formats.
    Xiph.org: libao: a cross platform audio library - Similar, but can play the music on the speakers (through ALSA, OSS, etc.)
    Princeton Sound Lab - [software]

  7. #7
    Registered User
    Join Date
    Jun 2009
    Posts
    8
    Thanks, Epy. That'll get me started. Please keep those links coming if you have more.

    Irno

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reentrant Message Processing (WndProc)
    By phantomotap in forum Windows Programming
    Replies: 7
    Last Post: 04-28-2009, 11:44 AM
  2. What types of files can C++ file processing handle?
    By darsunt in forum C++ Programming
    Replies: 9
    Last Post: 10-28-2008, 12:33 PM
  3. Sub Array Processing
    By GCNDoug in forum C++ Programming
    Replies: 8
    Last Post: 11-28-2007, 04:41 PM
  4. Using a lot of processing time!
    By nickname_changed in forum C++ Programming
    Replies: 0
    Last Post: 09-25-2003, 04:44 AM
  5. file writing crashes
    By test in forum C Programming
    Replies: 25
    Last Post: 08-13-2002, 09:44 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21