For example, I have 100 Byte PCM buffer and want to increase it to 300 Byte.
what i tried: asume original buffer was 9, 4, 1, 7, 5
- insert 0 - 9 0 0 4 0 0 1 0 0 7 0 0 5 0 0
- average - 9 7 5 4 3 2 1 3 5 7 7 6 5 5 5
- insert 0 in back - 9 4 1 7 5 0 0 0 0 0 0 0 0 0 0
They all had weird noise in result audio file.
How can I change length of buffer without effect sound? Is there any formula I can use?