Help - Search - Members - Calendar
Full Version: Need help with audio programming
Hydrogenaudio Forums > Hydrogenaudio Forum > Scientific Discussion
nombrecinq
I started audio programming in Pd, although now I'd like to create standalone Windows apps to show people my demos. I've looked at PortAudio, ASIO, libsndfile, and DirectX but nothing seems very simple. I really just need something simple where I can open up a file, do some DSP, then play back the file. I need full access to samples too and nothing can be automated, which is why PortAudio is hard for me. Does anybody have any suggestions or code examples?
nombrecinq
Here are some examples of what I'm doing in my program, this is just the audio
input and output for a 3D audio processing algorithm. This is currently running in Pd which is a graphical programming language. I need to take a wav file and do
this method until it's finished. Thanks in advance for any help!

//fills up left and right arrays with 512 inputs each
while(n--) {
new_left[readpos] = *(in1++);
new_right[readpos] = *(in2++);
readpos++;
}

/* ... all kinds of DSP ... */

//audio output, sends out 512 samples
for(readpos=0; readpos<NUMSAMPLES; readpos++)
{
*(out1++) = new_left[readpos];
*(out2++) = new_right[readpos];
}
kjoonlee
http://www.un4seen.com/

This is for C. I haven't used this myself, but you might want to check it out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.