A major mode to play mp3s under emacs

xiaoxiao2021-03-06  42

A major mode to play mp3s under emacs

I am An Intensive Emacs User and i Hate Fancy Guis à la Xmms. Hence, I Wrote this Major Mode Front-End To MPG321. You Can Get The Source Here: Mp3Play.el. It Displays Your List of MP3 in A Buffer And Allows you to control mpg321 and organise sequences of mp3 to play. you can check this impressive screenshot. Note that to control the gain, mp3play can either use aumix, or directly control the gain of mpg321 if you use the patch below.

I Have the folowing in my .emacs

(SetQ MP3PLAY-DIRLIST '("~ / mp3")

;; I want to see the remaining time

MP3PLAY-SHOW-TIMING 1

;; this Because I use a patched mpg321 to control the gain

MP3PLAY-Use-Remote-Gain T

; Initially, SET the GAIN TO 50%

MP3Play-Initial-Gain 50

;; WHERE to store the info about the songping to resume later

MP3PLAY-RESUME-FILE "~ / .MP3PLAY-RESUME")

(Load "MP3PLAY")

;; M- / Go to the MP3PLAY BUFFER

(Define-key global-map [(meta //)] 'mp3play

;; C-X C-M c-s stoods the current mp3

(Define-Key Global-Map [(Control S)] 'MP3PLAY-STOP)

;; C-X C-M C-P Pauses IT

(Define-key global-map [(Control M) (Control P)] 'MP3Play-Pause

;; C-X C-M C-I shows MP3 Informations

(Define-Key Global-Map [(Control I)] 'MP3PLAY-SHOW-CURRENT-INFORMATION

Download link

http://diwww.epfl.ch/~fleuret/files/mp3play.el

转载请注明原文地址:https://www.9cbs.com/read-74264.html

New Post(0)