summaryrefslogtreecommitdiffstats
path: root/src/sources/soundsourcecoreaudio.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2015-05-16 16:04:17 +0200
committerUwe Klotz <uwe_klotz@web.de>2015-05-16 16:04:17 +0200
commita0fec6a5b75c1c47ea82544e05861cecbc28707c (patch)
treefc2484ddbd552cc7699b8a836c7ce9f1f3d8d860 /src/sources/soundsourcecoreaudio.cpp
parente175a4e1e4b53479bf68ccca4f4cbf049bb0b696 (diff)
Add and register a SoundSourceProvider for each SoundSource
Diffstat (limited to 'src/sources/soundsourcecoreaudio.cpp')
-rw-r--r--src/sources/soundsourcecoreaudio.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sources/soundsourcecoreaudio.cpp b/src/sources/soundsourcecoreaudio.cpp
index 74c04817d5..e1261b88d7 100644
--- a/src/sources/soundsourcecoreaudio.cpp
+++ b/src/sources/soundsourcecoreaudio.cpp
@@ -25,19 +25,6 @@ static CSAMPLE kMp3StabilizationScratchBuffer[kMp3StabilizationFrames *
} // namespace
-QList<QString> SoundSourceCoreAudio::supportedFileExtensions() {
- QList<QString> list;
- list.push_back("m4a");
- list.push_back("mp3");
- list.push_back("mp2");
- //Can add mp3, mp2, ac3, and others here if you want.
- //See:
- // http://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html#//apple_ref/doc/c_ref/AudioFileTypeID
-
- //XXX: ... but make sure you implement handling for any new format in ParseHeader!!!!!! -- asantoni
- return list;
-}
-
SoundSourceCoreAudio::SoundSourceCoreAudio(QUrl url)
: SoundSource(url),
m_bFileIsMp3(false),
@@ -206,4 +193,17 @@ SINT SoundSourceCoreAudio::readSampleFrames(
return numFramesRead;
}
+QStringList SoundSourceProviderCoreAudio::getSupportedFileTypes() const {
+ QStringList supportedFileTypes;
+ supportedFileTypes.append("m4a");
+ supportedFileTypes.append("mp3");
+ supportedFileTypes.append("mp2");
+ //Can add mp3, mp2, ac3, and others here if you want.
+ //See:
+ // http://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html#//apple_ref/doc/c_ref/AudioFileTypeID
+
+ //XXX: ... but make sure you implement handling for any new format in ParseHeader!!!!!! -- asantoni
+ return supportedFileTypes;
+}
+
} // namespace Mixxx