Alternative to APLAY for Mac OS X bash Anybody knows any Mac alternative for Linux's APLAY program? I would like to run this script:

echo "main(i){for(i=0;;i++)putchar(((i*(i&gt;&gt;8|i&gt;&gt;9)&amp;46&amp;i&gt;&gt;8))^(i&amp;i&gt;&gt;13|i&gt;&gt;6));}" | gcc -x c - &amp;&amp; ./a.out | aplay


Which makes great sound effect, but I don't know how, since Mac OS doesn't have aplay.

EDIT:

Link to Wikipedia, which describes the functionality of aplay.
Here is the same program, as a perl one-liner, which works (tested) on Mac, Linux, and Windows

perl -e 'for($i=0;;$i++){
    print pack("n", ((($i*($i&gt;&gt;8|$i&gt;&gt;9)&amp;46&amp;$i&gt;&gt;8))^($i&amp;$i&gt;&gt;13|$i&gt;&gt;6))); 
}' | ./play -c 1 -b 8 -e unsigned -t raw -r 8k -


the "./play" command is the "sox" utility already mentioned in this article.&nbsp;