Audio audition with WMP?
-
I have written a simple audio player that uses MCI to audition audio files from a Windows file dialog, as well as from our own graphic UI. Unfortunately, since writing it we have learned that MCI does not support several audio file types, notably 24-bit files. We'd like to rewrite the class to use WMP, but documentation for that technology is hard to find. Can anyone recommend a way to use WMP to implement the following interface? class AudioPlayer { public: AudioPlayer(); ~AudioPlayer(); void OpenFile(const tstring& strFileName); void CloseFile(); const tstring& GetFileName() const; void Play(); void Stop(); bool IsPlaying() const; bool CanPlay() const; };
-
I have written a simple audio player that uses MCI to audition audio files from a Windows file dialog, as well as from our own graphic UI. Unfortunately, since writing it we have learned that MCI does not support several audio file types, notably 24-bit files. We'd like to rewrite the class to use WMP, but documentation for that technology is hard to find. Can anyone recommend a way to use WMP to implement the following interface? class AudioPlayer { public: AudioPlayer(); ~AudioPlayer(); void OpenFile(const tstring& strFileName); void CloseFile(); const tstring& GetFileName() const; void Play(); void Stop(); bool IsPlaying() const; bool CanPlay() const; };
How about using directx sound class or directshow? Refer below, http://www.codeproject.com/audio/[^] http://www.codeproject.com/audio/cwaveform.asp[^] Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com -- modified at 14:53 Saturday 4th February, 2006