Jump to content

PCM


Recommended Posts

My question's in the title really... I had a look into C++ and found something that i could have used, but i'm an extreme novice at it and couldn't quite understand it...

What i want to do, basically, is be able to take a number (something that i had just calculated and stuck in a variable/array...) and use that as teh sample value... so with that, i could, say, calculate a series of samples to make a sine wave, store that in a variable, and send those values straight to the speakers, creating a pure tone...

So... Can this be done...? i just need the basics, and i can work on it from there... I just want to know if there is a way, and how, i can use a number as a sample value in a wave file and play it...

thanks...

Sean G...

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...