Instead of giving a long drawn out explanation, I'm going to ask a simple question, post the code for the application, and if anyone can give me an answer that's exact and a solution I will be very extremely happy.
I'm tired of trying to figure it out because I really just want my app to work in Vista as it has everywhere else so I can keep teaching myself other things than why the god damn operating system is ........ing me off. Thanks. :-)
In Windows XP or Winows 2003 this captures audio coming from winamp (well any audio from anything)... in Windows Vista it does not. (it grabs the microphone) Why?
Less important than why is how do I get this simple example to do what I'd prefer, capture system audio. The same system did it with XP, I want the same system (as any other I've tested) to do the same now with Vista.
I've tried looping the sound back from the output to the line_in in the back with a coord that has a 3.5mm jack on each end, that is not an ideal solution.
I've tried using a virtual audio cable application, that is not ideal either, can't share my app.
This is my simplified application, I've posted it before on here, it serves as an example with the exact components in question.
(I've tried replacing NULL for openDevice with everything available, nothing gives system audio... I would like to use Vistas media api but I can't find a good working example of how to implement it.)
-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32 -lopenal32
using namespace std;
SRATE = 44100,
SSIZE = 1024;
short dint = 0;
int main(int argc, char *argv)
alDevice = alcCaptureOpenDevice(NULL, SRATE, AL_FORMAT_STEREO16, SSIZE);
if (alGetError() != AL_NO_ERROR)
cout << " \r";
// ... is there a better way to clear the first line? lol. :-)
alcGetIntegerv(alDevice, ALC_CAPTURE_SAMPLES, (ALCsizei)sizeof(ALint), &alSample);
alcCaptureSamples(alDevice, (ALCvoid *)alBuffer, alSample);
dint = ((((int *)alBuffer) >> 0) & 0xFFFF); // Left Channel
cout << dint << "\t";
dint = ((((int *)alBuffer) >> 16) & 0xFFFF); // Right Channel
cout << dint << "\r";