Anonymous user
Play recorded sounds: Difference between revisions
→{{header|Nim}}
(Added Wren) |
|||
Line 391:
-Suitable for playing sound of arbitrary long duration.
=={{header|Nim}}==
{{trans|Go}}
Using "sox" to play two sound files mixed. These are "wav" files but "six" recognizes a lot of sound formats.
<lang Nim>import osproc
let args = ["-m", "-v", "0.75", "a.wav", "-v", "0.25", "b.wav",
"-d",
"trim", "4", "6",
"repeat", "5"]
echo execProcess("sox", args = args, options = {poStdErrToStdOut, poUsePath})</lang>
=={{header|Phix}}==
|