That (byte[i]|byte[i+1] shl 8)-32768 is giving you an incorrect value, you'll need to PeekShort for 16bit audio and then convert it to a signed short (like I did for bytes)
Ok thats a good tip. But it seems to work, though.
Ah, you call that an error :p If I leave out the minus part I get an index out of range error because I do a peekbyte(samplesbank, i+1)
With your suggestion of using PeekShort there is no need of doing that anymore, I suppose.
One more question. Now I have my correct recorded sample, how can I save that to an ogg-file?
I can only find a LoadAudioSample() function.