这很棘手。我发现另一个用户通过谷歌搜索,我发现有同样的问题,但我似乎找不到任何解决办法。具体来说,在我的机器上,电磁兼容管理体系当 Emacs 在终端中运行时可以正常播放曲目,但在 GUI 环境中运行时不会播放曲目。
当我启用错误调试时,回溯日志显示以下内容:
Debugger entered--Lisp error: (error "Don't know how to play track: (*track* (type . file) (name . \"/Volumes/Users/Public/Music/iTunes/iTunes Music/Music/311/Don't Tread On Me/01 Don't Tread On Me.mp3\") (metadata) (info-artist . \"311\") (info-title . \"Don't Tread On Me\") (info-album . \"Don't Tread On Me\") (info-tracknumber . \"1\") (info-year . \"2005\") (info-genre . \"Rock\") (info-playing-time . 188) (info-mtime 19534 7550))")
signal(error ("Don't know how to play track: (*track* (type . file) (name . \"/Volumes/Users/Public/Music/iTunes/iTunes Music/Music/311/Don't Tread On Me/01 Don't Tread On Me.mp3\") (metadata) (info-artist . \"311\") (info-title . \"Don't Tread On Me\") (info-album . \"Don't Tread On Me\") (info-tracknumber . \"1\") (info-year . \"2005\") (info-genre . \"Rock\") (info-playing-time . 188) (info-mtime 19534 7550))"))
error("Don't know how to play track: %S" (*track* (type . file) (name . "/Volumes/Users/Public/Music/iTunes/iTunes Music/Music/311/Don't Tread On Me/01 Don't Tread On Me.mp3") (metadata) (info-artist . "311") (info-title . "Don't Tread On Me") (info-album . "Don't Tread On Me") (info-tracknumber . "1") (info-year . "2005") (info-genre . "Rock") (info-playing-time . 188) (info-mtime 19534 7550)))
emms-player-start((*track* (type . file) (name . "/Volumes/Users/Public/Music/iTunes/iTunes Music/Music/311/Don't Tread On Me/01 Don't Tread On Me.mp3") (metadata) (info-artist . "311") (info-title . "Don't Tread On Me") (info-album . "Don't Tread On Me") (info-tracknumber . "1") (info-year . "2005") (info-genre . "Rock") (info-playing-time . 188) (info-mtime 19534 7550)))
emms-start()
emms-playlist-mode-play-current-track()
emms-playlist-mode-play-smart()
call-interactively(emms-playlist-mode-play-smart nil nil)
当它工作正常时,我在 Mac OS X 10.6.4 上的 Terminal.app 中使用 Emacs 23.2.1。当它不工作时,我使用来自适用于 OS X 的 Emacs。
答案1
我在 Emacs 24 上遇到了同样的错误,但在我将以下内容添加到.emacs
文件(或 emacs 初始化文件)后问题得到了解决:
(require 'emms-setup)
(emms-all)
(emms-default-players)
哪个emma-setup
位置是~/.emacs.d/elpa/emms-{version}/emms-setup.el
。
答案2
我的 init 文件中有些问题。通过自定义变量“emms-player-list”并插入“emms-player-mplayer”值解决了该问题。
来自的回答EMMS 帮助列表。