#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    2
    Rep Power
    0

    Audio production in C


    Hey,

    I'm just getting used to computer based C programming after being used to programming microcontrollers. On a microcontroller, the easiest way to produce audio is to produce a sample and write it to an output in an interrupt.

    As far as I've researched, you can't really easily do interrupts generically in C, and they mainly seem processor dependent and OS dependent.

    How does a programmer produce audio in plain C?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    159
    Rep Power
    19
    Well "plain" C doesn't know anything about audio so you'll probably need some sort of system specific library.

    What operating system are you using?

    What type of audio are you trying to produce?


    Jim
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    2
    Rep Power
    0
    I'm using Windows 7 64bit. At the moment, i'm literally looking to merely produce a sine wave for x seconds, just to get to grips with writing audio to an output, are there any recommendations of libraries/software you can inform me about?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    159
    Rep Power
    19
    I don't do Windows but this link might be of some help.

    Jim

IMN logo majestic logo threadwatch logo seochat tools logo