3

I am using afplay to play a song and I want it to be repeat. Is it possible just using afplay?

5

Loop it in cycle:

In terminal:

while :; do afplay /path/to/song.mp3; done
1
  • there is a highly annoying pause at the end of each loop – Michael Jun 26 '19 at 18:59
-1

Expanding what @user3439968 said, if you use the fish shell, you can loop like this:

while true; afplay /System/Library/Sounds/Ping.aiff; end

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .