I've never had any sound problems before, but suddenly in the last week, this started happening.
When I resume after a pm-suspend, the sound gets "stuck" - if I play a song, for example, it will just play the first split-second of the song over and over (looping like a broken record!) and won't continue or stop, even if I stop the song in the application. This happens with both mpd and deadbeef, and at the moment I'm unable to get sound Youtube in either Chromium or Firefox to confirm whether it happens there too (though the fact that I can't get sound there is itself a problem).
I've tried restarting the alsa daemon, with no luck. Below are the contents of my /etc/pm/sleep.d/90alsa:
#!/bin/sh # # 90alsa: suspend/wakeup ALSA devices case "$1" in hibernate|suspend) ;; thaw|resume) #aplay -d 1 /dev/zero ;; *) exit $NA ;; esac
I have tried it both with and without the aplay line (commented out right now).
I'm seeing the same behavior. Running Arch on a Macookpro10,2
Oddly enough, I just noticed last night that the problem was fixed (likely the result of a -Syu at some point since my first post, but I can't be quite sure).