开发者

MP3 playback issues with DirectX when MP3 has album art encoded

开发者 https://www.devze.com 2023-04-10 14:11 出处:网络
I\'m using the Clootie DirectShow9 headers with Delphi 2007.I created a wrapper component that plays audio and video. All is good until I get an MP3 that has album art encoded in it. The mp3 files lik

I'm using the Clootie DirectShow9 headers with Delphi 2007. I created a wrapper component that plays audio and video. All is good until I get an MP3 that has album art encoded in it. The mp3 files like this just will not play. I do not get an error message from my code when I call pMediaControl.Run;. pMediaControl is IMediaControl. They just do not start playing. I many other MP3 files that are not encoded with album art and they play fine. There must be something I'm missing but I cannot figure it out.

These art encoded mp3 files play OK in WMP and Winamp on the same PC.

Can someone shed so开发者_如何学运维me light on this for me?

Thanks


I have also hit that one (or was it VFW_E_UNSUPPORTED_STREAM). It's because the metadata is currupted, or when the image-size is very big. (editing the Tag in Winamp sometimes helps)


I read a little about Media Foundation and it and look like it is available only on Vista and up. I need Windows XP support for now.

I'm going to use the bass.dll and the delphi wrapper unit. I've done some testing already and all my problem mp3 files play with bass.

I wanted to stay away from using a third party component / dll but my time to finish this project is getting slim.

http://www.un4seen.com

The download includes many Delphi samples. So far the library has worked great.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号