all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tpeplt <tpeplt@gmail.com>
To: Davin Pearson <davin.pearson@gmail.com>
Cc: gnu.emacs.help@gnu.org
Subject: Re: Getting sound online in GNU Emacs
Date: Wed, 10 Jul 2024 14:47:35 -0400	[thread overview]
Message-ID: <87cynl2iew.fsf@gmail.com> (raw)
In-Reply-To: <CAG9ihEtPtfch2cr6spEMzGvKsSkncW6hjhkXE8J0QNg=L2h5Yg@mail.gmail.com> (Davin Pearson's message of "Mon, 8 Jul 2024 10:42:54 +1200")

Davin Pearson <davin.pearson@gmail.com> writes:

> I am having trouble installing sound driver support on my home copy of GNU
> Emacs.
>
> Here are the sequence of commands that I execute to install GNU Emacs:
>
> (1)  cd ~/Downloads/emacs-29.1/ && tar fvx      ... OK
> (2a) cd ~/Downloads/emacs-29.1/ && ./configure --with-x-toolkit=no
> --with-xpm=ifavailable --with-jpeg=ifavailable --with-png=ifavailable
> --with-gif=ifavailable --with-tiff=ifavailable --with-gnutls=ifavailable
> ... OK
> (4)  cd ~/Downloads/emacs-29.1/ && make         ... OK
> (5)  cd ~/Downloads/emacs-29.1/ && make check   ... OK
>
> When I execute the following command inside of Emacs:
>
> (play-sound (list 'sound :file "amiga--trick-crazy-mode.wav"))
>
> It comes back with the following error message:
>
> play-sound: No usable sound device driver found
>

1. I was able to download your attached file to my home directory and
   play it using the following expression:

  (play-sound (list 'sound
                    :file (expand-file-name "amiga--trick-crazy-mode.wav" "~")))

  (The sound emitted was about 1/2 second of static.)

2. The ‘play-sound’ function is documented in the Emacs Lisp manual.
   Evaluate the following expression in Emacs to read the "Sound Output"
   section of the "Operating System Interface" chapter:

   (info "(elisp) Sound Output")

   The section begins with the paragraph:

   "To play sound using Emacs, use the function ‘play-sound’.  Only certain
    systems are supported; if you call ‘play-sound’ on a system which cannot
    really do the job, it gives an error."

   So it is possible that your system is not supported.

3. The function ‘report-emacs-bug’ generates a report about the
   configuration of Emacs when it was built.  Among the information listed
   is a section titled "Configured features:".  For my Emacs, this section
   includes "SOUND" as one of the configured features.  You could run
   ‘report-emacs-bug’ to get that listing and check to see whether your
   Emacs was configured to include support for sound.  (Rather than send
   the email with a bug report, simply kill the *mail* buffer after you
   have looked up the information.)

   If "SOUND" is not included in your list of configured features, then
   you likely need to investigate the configuration options to add sound.

   If "SOUND" is included, then your system might not be supported.

Someone who is knowledgeable about configuring and building recent
versions of Emacs may be able to provide more insight.

-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.



      parent reply	other threads:[~2024-07-10 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07 22:42 Getting sound online in GNU Emacs Davin Pearson
2024-07-08  6:49 ` Juergen Fenn
2024-07-10 18:47 ` tpeplt [this message]

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=87cynl2iew.fsf@gmail.com \
    --to=tpeplt@gmail.com \
    --cc=davin.pearson@gmail.com \
    --cc=gnu.emacs.help@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.