https://github.com/racket/gui/issues/239
So this does not work on both Arch Linux with prebuilt racket binaries and Debian with built from source binaries(according to a user JSGRANT on the racket discord server https://discord.com/channels/571040468092321801/618895179343986688/879797867903057921): ``` #lang racket (require 2htdp/image (only-in racket/gui/base play-sound)) (put-preferences '(GRacket:playcmd) '("mpv --no-audio-display ~a")) ; https://upload.wikimedia.org/wikipedia/commons/5/5d/Nl-honk.ogg (play-sound "./Nl-honk.ogg" #t) ``` because of this: https://github.com/racket/gui/blob/8aca4a224e887175975315895a42dd05b2d9ce77/gui-lib/mred/private/misc.rkt#L79 It uses `aplay` first to try and play the sound but according to this: https://unix.stackexchange.com/questions/363176/ogg-audio-file-and-aplay-white-noise > You cannot decode ogg files with aplay. According to the man page, the only formats aplay understands are voc, wav, raw and au. My guess is that aplay interprets the ogg file as raw data, hence the white noise. so I suggest swapping the order to `sndfile-play` or whichever command line audioplayer is available on most linux installations. A side issue is that we should probably provide an easier way to import `play-sound` because I want to use it with 2htdp/image with students. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/3d8d52e7-931b-4a89-938d-01982cf4f3ben%40googlegroups.com.