Error handling

presentation
Andreas Butti 7 years ago
parent b739bee210
commit 58348e908f
  1. 2
      src/util/audio/AudioRecorder.cpp
  2. 2
      src/util/audio/AudioRecorder.h
  3. 2
      src/util/audio/SoxConsumer.cpp

@ -28,7 +28,7 @@ AudioRecorder::~AudioRecorder()
XOJ_RELEASE_TYPE(AudioRecorder);
}
void AudioRecorder::start(std::string filename)
void AudioRecorder::start(string filename)
{
XOJ_CHECK_TYPE(AudioRecorder);

@ -26,7 +26,7 @@ public:
~AudioRecorder();
public:
void start(std::string filename);
void start(string filename);
void stop();
private:

@ -35,7 +35,7 @@ void SoxConsumer::start(string filename, double sampleRate, const DeviceInfo& in
if (this->outputFile == nullptr)
{
// TODO Stop recording in this case, so the users sees that recording is not running!
g_error("SoxConsumer: output file «%s» could not be opened", filename.c_str());
g_warning("SoxConsumer: output file \"%s\" could not be opened", filename.c_str());
return;
}

Loading…
Cancel
Save