I hope this is the correct forum. I started to do some programming involving sound recently and have encountered a lot of technical terms that are all foreign to me. I am slowly learning about them but there is a couple of them that I find it hard to grasp. I am trying to change the sample rate with one of my codes but I am not sure how to verify that it really got resampled and am unsure if I have understood the whole logic behind it.
Say that my laptop's default sample rate is 48000 Hz. I record something in 48000 Hz and want to change the sample rate to 96000 Hz. When I've done it, according to this pdf (http://dsp-book.narod.ru/Pitch_shifting.pdf) the pitch will get higher and the sound shorter. My code does indeed do that. But when I compare the audio file with default sample rate with the one with modified sample rate, they are in the same size. Shouldn't the upsampled version be larger since it contains more samples? And the quality of the file should be better, right? Should the pitch and speed of the upsampled file sound "normal" when played in a 96000 Hz-machine?
Yeah, as you can see I am a bit confused. I think that I may have implemented the upsampling incorrectly, but what conditions should it fulfill when it is upsampled correctly? How can I verify?
Thanks in advance!