I recently downloaded a PortAudio archive from the portaudio.com downloads section. I even took the initiative of running ./configure
, make
, and make install
as instructed on the PortAudio website in my portaudio
folder (FYI, I both downloaded and extracted the archive in my downloads folder).
I could not find any explicit information online on how to use PortAudio; My first unguided attempt was to compile this program (saved as portaudio.cpp
):
#include <portaudio.h>
int main() {
return 0;
}
I received this error:
C:\Users\PrivacyMatters\C++ Projects\portaudio>g++ portaudio.cpp -o portaudio.exe
portaudio.cpp:1:23: fatal error: portaudio.h: No such file or directory
#include <portaudio.h>
^
compilation terminated.
My end goal is to build a program that plays music files - whether they be .wav, .mp3 or whatever - through my headphone's mic so I can play music in counter-strike 1.6; I have tried programs like VB-Cable but I was a bit impatient and couldn't get that to work and thought that this would be a fun project anyway. I chose C++ because a) I'm trying to learn it and b) because I've been told it runs faster than python; something I am willing to sacrifice if push comes to shove.
Have a nice day, and my apologies for the headaches I'm probably inducing.
P.S. I wouldn't mind any helpful resources for actually programming with PortAudio once I've solved this issue ;)