|
@@ -49,11 +49,7 @@ RecordingDevice::RecordingDevice(const char *name)
|
|
|
|
|
|
RecordingDevice::~RecordingDevice()
|
|
|
{
|
|
|
- if (!isRecording())
|
|
|
- return;
|
|
|
-
|
|
|
- alcCaptureStop(device);
|
|
|
- alcCaptureCloseDevice(device);
|
|
|
+ stop();
|
|
|
}
|
|
|
|
|
|
bool RecordingDevice::start(int samples, int sampleRate, int bitDepth, int channels)
|
|
@@ -121,6 +117,11 @@ int RecordingDevice::getSampleCount() const
|
|
|
return (int)samples;
|
|
|
}
|
|
|
|
|
|
+int RecordingDevice::getMaxSamples() const
|
|
|
+{
|
|
|
+ return samples;
|
|
|
+}
|
|
|
+
|
|
|
int RecordingDevice::getSampleRate() const
|
|
|
{
|
|
|
return sampleRate;
|