I have a wav file, Duration: 00:00:00.17 (less than a second!)
When I call play
to execute it, play
executes it fine, but my terminal becomes idle for ~4s until play process is done.
Is this by design? Is it possible to just play the sound and be done in less than a second?
EDIT: Running time
as suggested by @jsbillings:
File Size: 1.89k Bit Rate: 90.3k
Encoding: Unsigned PCM
Channels: 1 @ 8-bit
Samplerate: 11025Hz
Replaygain: off
Duration: 00:00:00.17
In:100% 00:00:00.17 [00:00:00.00] Out:1.85k [!=====|=====!] Clip:0
Done.
real 0m2.912s
user 0m0.004s
sys 0m0.008s
play
shouldn't be adding a delay. Try runningtime play sound.wav
(replacing sound.wav with 0.17 second long wav file). – jsbillings Feb 8 '11 at 16:12play
doesn't normally have such a delay. Do you observe the delay with other files or on other machines? Can you put up the file on the web so other people may test on their machine? Are you running a sound server (PulseAudio, Esd, …)? The output ofstrace -s9999 -rtt
might show what's going on. – Gilles 'SO- stop being evil' Feb 9 '11 at 22:38