Amplitude Manipulation as it Relates to Volume
Posted: Sat Apr 14, 2012 10:32 am
Hey,
So I am kind of new to audio programming and I have been fiddling with the amplitude of PCM waves in order to change volume (I feel like this may be frowned upon), and I was wondering if someone could correct me if I am incorrect.
(The following is made under the assumption that there is no loss of accuracy while converting from higher amplitude to lower amplitude)
1)So my understanding is that if I have an unmodified audio file 'A' and I create audio file 'B' with the amplitude of each wave being 10% of the original, then the result should be that 'B' should be 10% as loud as 'A'.
2)Now if I play file 'A' at volume 'x' and I play 'B' at volume '10x', they should sound the same.
The reason I ask is that I have been trying to code this (too much code to put in) and I have am skeptical of the quality of the audio in my results. It sounds as if 'A' sounds better than 'B' and I am almost completely certain there is no loss in accuracy from converting 'A' to 'B'.
I would really appreciate any help with this and thank you for your time.
So I am kind of new to audio programming and I have been fiddling with the amplitude of PCM waves in order to change volume (I feel like this may be frowned upon), and I was wondering if someone could correct me if I am incorrect.
(The following is made under the assumption that there is no loss of accuracy while converting from higher amplitude to lower amplitude)
1)So my understanding is that if I have an unmodified audio file 'A' and I create audio file 'B' with the amplitude of each wave being 10% of the original, then the result should be that 'B' should be 10% as loud as 'A'.
2)Now if I play file 'A' at volume 'x' and I play 'B' at volume '10x', they should sound the same.
The reason I ask is that I have been trying to code this (too much code to put in) and I have am skeptical of the quality of the audio in my results. It sounds as if 'A' sounds better than 'B' and I am almost completely certain there is no loss in accuracy from converting 'A' to 'B'.
I would really appreciate any help with this and thank you for your time.