1
Audio / sf::SoundRecorder derived class
« on: December 11, 2017, 08:58:26 pm »
Hello everyone,
I'm trying to make a derived class of sf::SoundRecorder, but I get an error at the start in the constructor:
I really don't understand how is it possible. I guess I did a mistake in the implementation ?
Is it impossible to make a constructor of a derived class wich has its constructor in protected ?
I'm trying to make a derived class of sf::SoundRecorder, but I get an error at the start in the constructor:
Code: [Select]
class cMicRecord : public sf::SoundRecorder
{
public:
cMicRecord();
~cMicRecord();
bool isRecording();
protected:
virtual bool onStart();
virtual bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount);
virtual void onStop();
private:
bool m_bRecording;
bool m_bOperational;
};
Quote
Exception is thrown at 0x77D0A225 (ntdll.dll) in ******.exe : 0xC0000005 : Access violation when writing at 0x00000004.(Screenshot)
I really don't understand how is it possible. I guess I did a mistake in the implementation ?
Is it impossible to make a constructor of a derived class wich has its constructor in protected ?