[Tutor] Problem recording large wav files with Snack

klappnase klappnase@freenet.de
Thu Jul 17 07:07:01 2003


Hello,
I am trying to develop some little sound applications for linux using the snack toolkit.
(I am far from being a "professional" programmer, but just a beginner).
I want to record large files to disk (whole sides of vinyl albums), so I do something like:

s = tkSnack.Sound(encoding="Lin16", frequency=44100, channels=2, fileformat="WAV", byteorder="littleEndian,\
			precision="double", file="xyz.wav")
s.record()

Now I have this strange problem that every time a screensaver starts (or other programs are launched)
I get a loss of audio data, so that for example ten seconds of sound in the middle of the file are
completely missing.
I think that I should add some buffering for the recording, but the "buffersize" option does not seem to
have any effect on this.
If you have an idea what I could do about this I would be very thankful for any hints.

Best regards

Michael