all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: emacs-devel@gnu.org
Subject: `play-sound-file', no mp3 support, sets global volume w/o reset
Date: Wed, 04 Sep 2024 23:52:13 +0200	[thread overview]
Message-ID: <87bk13w0he.fsf@dataswamp.org> (raw)

`play-sound-file' doesn't play mp3 files, but it could, as the
MP3 patent expired in 2017. (So between 6y 8m 4d and 7y 8m 3d ago.)

But you can easily convert convert an .mp3 file into an .au
file with

  $ ffmpeg -i src.mp3 dst.au

But play-sound-file has another problem, namely, if you do e.g.

  (play-sound-file (file-name-concat bad-dir "data" "up.au") 0.4)

it sets the global volume to 40% and worse, after it is done,
it isn't reset.

-- 
underground experts united
https://dataswamp.org/~incal




             reply	other threads:[~2024-09-04 21:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04 21:52 Emanuel Berg [this message]
2024-09-11 12:07 ` `play-sound-file', no mp3 support, sets global volume w/o reset Emanuel Berg
2024-09-11 20:43   ` Stefan Kangas
2024-09-12  4:50     ` Emanuel Berg
2024-09-22 12:19   ` Björn Bidar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk13w0he.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.