diff --git a/sflphone-common/src/audio/sound/audiofile.cpp b/sflphone-common/src/audio/sound/audiofile.cpp index 5214504beac6059c39a9a80d2ac9a1bb70d48f44..66c61ca7f308c233bce4265ddf4e3fba7106b7fe 100644 --- a/sflphone-common/src/audio/sound/audiofile.cpp +++ b/sflphone-common/src/audio/sound/audiofile.cpp @@ -199,15 +199,6 @@ void WaveFile::openFile (const std::string& fileName, int audioSamplingRate) thr } - -bool WaveFile::closeFile() -{ - fileStream.close(); - - return true; -} - - bool WaveFile::isFileExist (const std::string& fileName) { std::fstream fs (fileName.c_str(), std::ios_base::in); @@ -222,19 +213,6 @@ bool WaveFile::isFileExist (const std::string& fileName) } -bool WaveFile::isFileOpened() -{ - - if (fileStream.is_open()) { - _debug ("WaveFile: file is openened"); - return true; - } else { - _debug ("WaveFile: file is not openend"); - return false; - } -} - - void WaveFile::openExistingWaveFile (const std::string& fileName, int audioSamplingRate) throw(AudioFileException) { @@ -442,8 +420,6 @@ void WaveFile::openExistingWaveFile (const std::string& fileName, int audioSampl void WaveFile::loadFile (const std::string& name, sfl::AudioCodec * /*codec*/, unsigned int sampleRate) throw(AudioFileException) { - _debug("WaveFile: Load new file %s", name.c_str()); - try { openFile (name, sampleRate); } diff --git a/sflphone-common/src/audio/sound/audiofile.h b/sflphone-common/src/audio/sound/audiofile.h index dde6e06c9ecd2b05b67041991dc20349161ee29d..07195cb6738b677bfe323672580230608e148f32 100644 --- a/sflphone-common/src/audio/sound/audiofile.h +++ b/sflphone-common/src/audio/sound/audiofile.h @@ -163,21 +163,11 @@ class WaveFile : public AudioFile */ void openFile (const std::string&, int) throw(AudioFileException); - /** - * Close an opened file - */ - bool closeFile(); - /** * Test if the specified file already exist */ bool isFileExist (const std::string&); - /** - * Test if file opend - */ - bool isFileOpened(); - /** * Load a sound file in memory * @param filename The absolute path to the file