1
Audio / Streaming Sound over UDP
« on: January 31, 2012, 12:43:32 pm »
***EDIT***
Solved everything by rebuilding the program. Don't know what caused it all but my guess is incompatible DLL's.
***EDIT***
Positive! After extensive testing!
The call stack:
Clicking
links me to
It can't seem to find my derived function.
***EDIT***
Solved everything by rebuilding the program. Don't know what caused it all but my guess is incompatible DLL's.
***EDIT***
Solved everything by rebuilding the program. Don't know what caused it all but my guess is incompatible DLL's.
***EDIT***
Quote from: "Laurent"
Are you sure that you're using the DLL that you recompiled, and not an old one?
Positive! After extensive testing!
The call stack:
Code: [Select]
> msvcr100d.dll!_NMSG_WRITE(int rterrnum) Line 217 C
msvcr100d.dll!_purecall() Line 54 + 0x7 bytes C
sfml-audio-d-2.dll!sf::SoundRecorder::ProcessCapturedSamples() Line 180 + 0x29 bytes C++
sfml-audio-d-2.dll!sf::SoundRecorder::Record() Line 155 C++
Clicking
Code: [Select]
> sfml-audio-d-2.dll!sf::SoundRecorder::ProcessCapturedSamples() Line 180 + 0x29 bytes C++
links me to
Code: [Select]
void SoundRecorder::ProcessCapturedSamples()
{
// Get the number of samples available
ALCint samplesAvailable;
alcGetIntegerv(captureDevice, ALC_CAPTURE_SAMPLES, 1, &samplesAvailable);
if (samplesAvailable > 0)
{
// Get the recorded samples
mySamples.resize(samplesAvailable);
alcCaptureSamples(captureDevice, &mySamples[0], samplesAvailable);
// Forward them to the derived class
THIS LINE: if (!OnProcessSamples(&mySamples[0], mySamples.size())) THIS LINE
{
// The user wants to stop the capture
myIsCapturing = false;
}
}
}
It can't seem to find my derived function.
Code: [Select]
class Recorder : public sf::SoundBufferRecorder
{
virtual bool OnStart()
{
std::cout << "\nOnStart";
return true;
}
virtual bool OnProcessSamples(const Int16* samples, std::size_t sampleCount)
{
std::cout << "\nProcess....";
packet.Clear();
packet.Append(samples,sampleCount * sizeof(sf::Int16));
std::cout << " \n Recieved: "<<sampleCount;
socket.Send(packet,"127,0,0,1",2000);
return true;
}
Packet packet;
public:
unsigned short port;
};
***EDIT***
Solved everything by rebuilding the program. Don't know what caused it all but my guess is incompatible DLL's.
***EDIT***