{"id":431,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=431"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"soundplay-play-and-exit","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=431","title":{"rendered":"SoundPlay: Play and exit"},"content":{"rendered":"<p>If you want to play a sound at shutdown, you can feed a file to SoundPlay with something like:<\/p>\n<pre>\/boot\/apps\/SoundPlay-3.4\/SoundPlay \/boot\/home\/Desktop\/a.wav &amp; <\/pre>\n<p>The problem with this technique is that even with the &amp;, SoundPlay itself will not exit when it&#8217;s done playing the track. That&#8217;s why SoundPlay has the (undocumented) &#8222;-x&#8220; option:<\/p>\n<pre>SoundPlay -x file.mp3<\/pre>\n<p> will play the given file and exit when it&#8217;s finished. To have this happen at every shutdown, just add the line to <code>\/boot\/home\/config\/boot\/UserShutdownScript<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to play a sound at shutdown, you can feed a file to SoundPlay with something like: \/boot\/apps\/SoundPlay-3.4\/SoundPlay \/boot\/home\/Desktop\/a.wav &amp; The problem with this technique is that even with the &amp;, SoundPlay itself will not exit when it&#8217;s done playing the track. That&#8217;s why SoundPlay has the (undocumented) &#8222;-x&#8220; option: SoundPlay -x file.mp3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[2],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","tag-applications"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=431"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/431\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}