Logo Search packages:      
Sourcecode: pwlib version File versions

void PSound::SetFormat ( unsigned  numChannels,
unsigned  sampleRate,
unsigned  bitsPerSample 
)

Set the internal sound format to linear PCM at the specification in the parameters.

Parameters:
numChannels  Number of channels eg mono/stereo
sampleRate  Samples per second
bitsPerSample  Number of bits per sample

Definition at line 258 of file sound.cxx.

References encoding, formatInfo, numChannels, sampleRate, and sampleSize.

{
  encoding = 0;
  numChannels = channels;
  sampleRate = samplesPerSecond;
  sampleSize = bitsPerSample;
  formatInfo.SetSize(0);
}


Generated by  Doxygen 1.6.0   Back to index