CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Generating Audio

    Hello,
    I would like to know how I would be able to generate an audio wave by using a table of values to make each point.

    For example, I may have the values for a sine wave stored in a list, so it would need to refer to each value and recreate the sine wave. I know that the frequency wouldn't match but that's not my point here.

    Thanks!

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Generating Audio

    It depends on the nature of the data, but essentially you just normalize the data to 8 or 16 bit signed ints and build a wav header to match the data.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured