Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Use a built-in command line audio player' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Use a built-in command line audio player
Authored by: rpaege on Oct 03, '08 03:17:17PM

You can also chain several songs together by repeating the afplay command after a semicolon:

afplay music.mp3 &; afplay sound.mp3 &

etc..

I'm not a terminal geek so i had to fart around with this a bit to get it, but if I simply copy a file in the Finder then paste it after the afplay command (or simply drag it into the terminal) the path formatting will stay intact. So, that's probably the easiest thing to do for most people if they are getting file not found errors.



[ Reply to This | # ]
10.5: Use a built-in command line audio player
Authored by: rahulbenegal on May 14, '10 10:36:30PM

Sorry, putting an ampersand & after each track means that all tracks will play in parallel. You should put one ampersand at the end.

afplay a.mp3 b.mp3 c.mp3 &



[ Reply to This | # ]