Re: Questions about WAV Files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Tue, 06 Jun 2006 11:06:54 -0400, Scott McPhillips [MVP] wrote:

Luc wrote:
Hi, I was wondering if someone could provide me with some information on WAV
file volume levels.

For one thing, is there a way to record a WAV File so that it plays with a
specific output voltage level at max volume? If so, is there an application
that can set this?
Also, is there a way to increase this max volume so that I can force it to
clip on the sound card?


The WAV file samples should be thought of as a percentage of full scale,
not a specific voltage. +/- 32K (for 16 bit encoding) is full scale.

Since the sound card is designed to play up to full scale, you can't
force the sound card to clip on playback unless you clip (amplify) the
data before it goes to the card. But if you record it clipped it will
certainly play back clipped :(

With certain sound cards it may be possible to overdrive the output by
maxing out both the wave device volume and the master volume when playing a
full range sample. But Scott is absolutely correct, you can't overdrive
the output with data as it is not possible to get a sample out of bounds.
The only exception might be if a device driver was badly behaved and it
supported out-of-range values in IEEE-float data, but basically it ain't
gonna happen.

And as output level is not calibrated according to any scale, it's
impossible to match sample values to output levels. You can account for
change however. A 6dB change in the sample values will result in a 6dB
change in the output voltage (audio dB scale this is a doubling) provided
that no mixer volumes are adjusted.

--
http://www.chrisnet.net/code.htm
http://www.avdevforum.com/AV
.



Relevant Pages

  • Re: priority for audio device
    ... I consider the audio device to be the sound card. ... PLAY and RSJ are contending for access to the cd player. ... Here the two programs are fighting over the sound card. ... So it seems that PLAY unnecessarily demands exclusive access to the direcory containing the wav file it is playing. ...
    (comp.os.os2.multimedia)
  • Re: Questions about WAV Files
    ... is there a way to record a WAV File so that it plays with a specific output voltage level at max volume? ... Since the sound card is designed to play up to full scale, you can't force the sound card to clip on playback unless you clip the data before it goes to the card. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Help with speaker code VB6
    ... >> fact that I have a sound card in the computer. ... > is even difficult to play a default little beep sound through that speaker ... and you certainly won't ever get it to mplay a wav file. ...
    (comp.lang.basic.visual.misc)
  • cdda2wav question
    ... between my CD player and my sound card): ... Konqueror to play it. ... But how do I play it directly, without first creating a .wav file? ...
    (linux.redhat)
  • IMS Telephone On-Hold Player 3.13
    ... The IMS plays telephone on hold messages or music using a computer ... background using the CPU idle time and the buffer on the sound card. ... play only on certain days of the week or times of day. ... feature or single line operation with a voice modem. ...
    (comp.software.shareware.announce)