made :getData produce SoundData directly

moved SoundData::load back to private

--HG--
branch : minor-mic-input
This commit is contained in:
Raidho
2016-10-25 02:39:39 +03:00
parent 3de68707d1
commit a99c757652
7 changed files with 36 additions and 42 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ void RecordingDevice::stopRecording()
{
}
int RecordingDevice::getData(love::sound::SoundData*)
love::sound::SoundData *RecordingDevice::getData()
{
return 0;
return nullptr;
}
int RecordingDevice::getSampleCount() const
+1 -1
View File
@@ -39,7 +39,7 @@ public:
virtual bool startRecording();
virtual bool startRecording(int samples, int sampleRate, int bitDepth, int channels);
virtual void stopRecording();
virtual int getData(love::sound::SoundData *soundData);
virtual love::sound::SoundData *getData();
virtual const char *getName() const;
virtual int getID() const;
virtual int getSampleCount() const;