Sign in to follow this  
Followers 0
rabbitkillrun

PCM

4 posts in this topic

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...

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

bump...

anyone know of a DLL or anything then that would be of any use instead...?

Edited by rabbitkillrun

Share this post


Link to post
Share on other sites

Not exactly what you want, but I posted an example how to play raw pcm data some time ago. It reads the audio data from a .wav file but I guess you could fill the buffer by yourself.

http://www.autoitscript.com/forum/index.ph...c=79986&hl=


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

thanks... :)

i'll take a look now...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0