summaryrefslogtreecommitdiffstats
path: root/src/sources/soundsourceoggvorbis.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-09-17 13:30:57 +0200
committerUwe Klotz <uwe_klotz@web.de>2017-11-06 22:27:20 +0100
commitf32e4efba4019c049133a54c0e59ea49887c831f (patch)
tree4f3b872592a4b03cb9aefcef7c5298b9a5f2d499 /src/sources/soundsourceoggvorbis.cpp
parent76215d2ba87636af5bb710fd648aaac873c79175 (diff)
Update literals and documentation of OpenResult enum
Diffstat (limited to 'src/sources/soundsourceoggvorbis.cpp')
-rw-r--r--src/sources/soundsourceoggvorbis.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sources/soundsourceoggvorbis.cpp b/src/sources/soundsourceoggvorbis.cpp
index 1d75f6c8b4..9d9a64f5b0 100644
--- a/src/sources/soundsourceoggvorbis.cpp
+++ b/src/sources/soundsourceoggvorbis.cpp
@@ -44,7 +44,7 @@ SoundSource::OpenResult SoundSourceOggVorbis::tryOpen(const AudioSourceConfig& /
kLogger.warning()
<< "Failed to open file for"
<< getUrlString();
- return OpenResult::FAILED;
+ return OpenResult::Failed;
}
const int initDecoderResult = ov_open_callbacks(m_pFile.get(), &m_vf, nullptr, 0, s_callbacks);
@@ -57,12 +57,12 @@ SoundSource::OpenResult SoundSourceOggVorbis::tryOpen(const AudioSourceConfig& /
kLogger.warning()
<< "Unsupported format in"
<< getUrlString();
- return OpenResult::ABORTED;
+ return OpenResult::Aborted;
default:
kLogger.warning()
<< "Failed to initialize decoder for"
<< getUrlString();
- return OpenResult::FAILED;
+ return OpenResult::Failed;
}
if (!ov_seekable(&m_vf)) {
@@ -70,7 +70,7 @@ SoundSource::OpenResult SoundSourceOggVorbis::tryOpen(const AudioSourceConfig& /
<< "Stream in"
<< getUrlString()
<< "is not seekable";
- return OpenResult::ABORTED;
+ return OpenResult::Aborted;
}
// lookup the ogg's channels and sample rate
@@ -79,7 +79,7 @@ SoundSource::OpenResult SoundSourceOggVorbis::tryOpen(const AudioSourceConfig& /
kLogger.warning()
<< "Failed to read stream info from"
<< getUrlString();
- return OpenResult::FAILED;
+ return OpenResult::Failed;
}
setChannelCount(vi->channels);
setSamplingRate(vi->rate);
@@ -98,10 +98,10 @@ SoundSource::OpenResult SoundSourceOggVorbis::tryOpen(const AudioSourceConfig& /
kLogger.warning()
<< "Failed to read read total length of"
<< getUrlString();
- return OpenResult::FAILED;
+ return OpenResult::Failed;
}
- return OpenResult::SUCCEEDED;
+ return OpenResult::Succeeded;
}
void SoundSourceOggVorbis::close() {