[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emms-help] Re: Error: "Don't know how to play track"

From: Jens Juul Christensen
Subject: [emms-help] Re: Error: "Don't know how to play track"
Date: Thu, 29 Dec 2005 20:08:59 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Jorgen Schaefer <address@hidden> writes:

> Jens Juul Christensen <address@hidden> writes:
>>> > Debugger entered--Lisp error: (error "Don't know how to play
>>> > track: (*track* (type . file) (name . myfile.ogg))")
> This means no player in `emms-player-list' feels responsible for a
> file named "myfile.ogg".
> What's the value of `emms-player-list' in your setup?
> Does it include `emms-player-ogg123' or `emms-player-mplayer'?
> What does the following code fragment evaluate to?
>  (emms-player-for '(*track* (type . file)
>                             (name . "myfile.ogg")))
> Greetings,
>         -- Jorgen
> -- 
> ((email . "address@hidden") (www . "http://www.forcix.cx/";)
>  (gpg   . "1024D/028AF63C")   (irc . "nick forcer on IRCnet"))

Thanks for your reply.

These lines made it possiple for me to to debug and solve the problem:

>  (emms-player-for '(*track* (type . file)
>                             (name . "myfile.ogg")))

It evaluated to "nil". I played around with the Emms-player-list and
suddenly it worked perfectly. Emms-player-for suddenly evaluated to the
correct player and everything now works fine. I suspect some whitespaces
in my player list gave me the problems ?? Im a newbie with Emacs :-/

Emms is GREAT. It does excatly what I want :-)

I ended up with this final setup where I have added support for .pls
files used by http://di.fm and http://soma.fm

(add-to-list 'load-path (expand-file-name "~/.myemacs/site/emms"))

(require 'emms-setup)

(setq emms-source-file-default-directory "/path/to/mymusic/")

(define-emms-simple-player mplayer-mp3 '(file url)
  "\\.[mM][pP][23]$" "mplayer")

(define-emms-simple-player mplayer-ogg '(file)
  (regexp-opt '(".ogg" ".OGG" ".FLAC" ".flac" )) "mplayer")

(define-emms-simple-player mplayer-playlist '(streamlist)
  "http://"; "mplayer" "-playlist")

(define-emms-simple-player mplayer-list '(file url)
  (regexp-opt '(".m3u" ".pls")) "mplayer" "-playlist")

(define-emms-simple-player mplayer-video '(file url)
  (regexp-opt '(".ogg" ".mp3" ".wav" ".mpg" ".mpeg" ".wmv"
                ".wma" ".mov" ".avi" ".divx" ".ogm" ".asf"
                ".mkv" "http://";)) "mplayer")

(setq emms-player-list '(emms-player-mplayer-mp3

(setq emms-playlist-buffer-name "*EMMS*")

(setq emms-info-asynchronously t)

(setq emms-stream-default-action "play")

(defun emms-add-universe-synchronously ()
  (let ((emms-info-asynchronously nil))
    (emms-add-directory-tree emms-source-file-default-directory)
     (message "Thud!")))

;debug players
; (emms-player-for '(*track* (type . file)
;                           (name . "myfile.pls")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]