|
From: Eric W. <nor...@yh...> - 2012-12-02 08:22:02
|
Sergei Steshenko <ser...@ya...> wrote: > Is there a way to endlessly repeat (infinite loop) playing of that > single period without gaps ? I'm not sure about periodic generators, but using some shell scripting and "raw" audio formats for IPC (no EOF/file-length metadata exchanged between processes), it's easy to play a file in an infinite loop without reopening the audio output device (which causes audible gaps). You need to specify a common raw format for the exchange, and setup a pipe: # customize FORMAT to match your input file FORMAT="-t s32 -c2 -r44100" play $FORMAT "|while sox input.wav $FORMAT -; do :; done" |