声子不支持 mp3 文件

发布于 2024-09-10 10:49:10 字数 234 浏览 2 评论 0原文

我正在使用 Qt SDK 4.6 在 Windows XP 上开发一个简单的音乐播放器。 我已经检查了 phonon 支持的可用 mime 类型,据此我的 phonon 支持 mp3 文件 然而,当我尝试使用我的音乐播放器播放 .mp3 格式的音频文件时,mediaObject 处于错误状态,我得到的错误是 致命错误:找不到用于渲染流的过滤器组合 其次,我想知道如何为 phonon 目前不支持的其他音频文件提供支持,例如 .ogg 文件。 请帮忙。

I am using Qt SDK 4.6 for developing a simple music player on windows XP.
I have checked available mime types supported by phonon and according to it my phonon supports mp3 files
Yet as i try to play an audio file of .mp3 format using my music player mediaObject moves in Error State and the error i get is
Fatal Error : No combination of filters could be found to render the stream
Secondly, I want to know how can i provide support for other audio files which are not currently supported by phonon like as .ogg file.
Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

擦肩而过的背影 2024-09-17 10:49:10

声子只是媒体播放器后端的一个抽象层。请在此处查看概述并查找“后端”部分。

您需要为目标后端安装 mp3 编解码器。如果您使用的是 Windows,这将确保您可以在 DirectShow/DirectX 中播放 mp3。您的错误意味着您没有任何 mp3 的 DirectShow 过滤器

Phonon is just an abstraction layer over a media player backend. Check the overview here and look for the Backends section.

You need to install mp3 codecs for your target backend. If you're on Windows, this is making sure you have mp3 playback in DirectShow/DirectX. Your error implies that you don't have any DirectShow filters for mp3

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文