I'm trying to, in a buffer, insert some text, then play a sound. Sample code is as follows:
(progn (insert "this won't be inserted until after the sound")
(play-sound '(sound :file "/home/zck/Documents/countdown.el/Ovation-Mike_Koenig-1061486511.wav")))
Put the path to a wav file in the argument to play-sound
. I've tried multiple files, but this is the one I'm using.
The result is that I hear the sound, then the text is inserted. How can I invert that?