nombrecinq
Oct 23 2005, 01:48
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
Oct 23 2005, 01:51
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
Oct 23 2005, 02:23
http://www.un4seen.com/This is for C. I haven't used this myself, but you might want to check it out.