LAME is an MPEG layer 3 audio encoding engine, released in source form, licensed under the LGPL.
Observations allow evaluations of the perceptual performance of lossy encoding.
A simple command-line utility, jchopwave can extract sections of PCM waveform files into separate smaller ".wav" files.
You may download the source code for jchopwave, version 0.06.