Skip to content

Commit 5f8cfcf

Browse files
committed
Windows media foundation support
1 parent 8c97448 commit 5f8cfcf

File tree

8 files changed

+1968
-35
lines changed

8 files changed

+1968
-35
lines changed

modules/yup_audio_formats/common/yup_AudioFormatManager.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,27 @@ void AudioFormatManager::registerDefaultFormats()
3232
registerFormat (std::make_unique<AppleCoreAudioFormat>());
3333
#endif
3434

35+
#if YUP_AUDIO_FORMAT_MEDIAFOUNDATION
36+
registerFormat (std::make_unique<WindowsMediaAudioFormat>());
37+
#endif
38+
3539
#if YUP_AUDIO_FORMAT_WAVE
3640
registerFormat (std::make_unique<WaveAudioFormat>());
3741
#endif
3842

39-
#if YUP_AUDIO_FORMAT_MP3
40-
registerFormat (std::make_unique<Mp3AudioFormat>());
43+
#if YUP_AUDIO_FORMAT_FLAC
44+
registerFormat (std::make_unique<FlacAudioFormat>());
4145
#endif
4246

4347
#if YUP_AUDIO_FORMAT_OPUS
4448
registerFormat (std::make_unique<OpusAudioFormat>());
4549
#endif
4650

47-
#if YUP_AUDIO_FORMAT_FLAC
48-
registerFormat (std::make_unique<FlacAudioFormat>());
51+
#if YUP_AUDIO_FORMAT_MP3
52+
registerFormat (std::make_unique<Mp3AudioFormat>());
4953
#endif
5054

5155
// TODO: Add other formats like:
52-
// registerFormat (std::make_unique<AiffAudioFormat>());
5356
// registerFormat (std::make_unique<OggVorbisAudioFormat>());
5457
}
5558

0 commit comments

Comments
 (0)