CSE 303: Concepts and Tools for Software Development, Winter 2008
  CSE Home   About Us   Search   Contact Info 
 
Course Home
 Home
Administation
 Overview
 Course Wiki
 Email archive
 Anonymous feedback
 View feedback
 Homework Turnin
 
Most Everything
 Schedule
 
Other Information
 UW/ACM Tutorials
 303 Computing: Getting Started
   

sndscale

Usage: sndscale inputFile outputFile

Parameters
An input and an output file name, followed by one or more gain values. The file name '-' indicates stdin for the input file and stdout for the output file.
Function
Copies the input file to the output file, applying a gain that causes the maximum magnitude sample in the output file to be just slightly less than the maximum magnitude possible, given the sample size.

[In my implementation, I used 95% of the maximum possible value. Exactly what you use isn't terribly important.]

Note that a single gain is applied to all channels.

Output File Format
#ChannelsSame as input file
FrequencySame as input file
Sample size32-bits

Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to zahorjan at cs.washington.edu]