internal virtual string MakeCompressedAudio(string wavPath)
{
// We have a recording, but not compressed. Possibly the LAME package was installed after
// the recordings were made. Compress it now.
if (_mp3Encoder == null)
{
if (!LameEncoder.IsAvailable())
{
return null;
}
_mp3Encoder = new LameEncoder();
}
_mp3Encoder.Encode(wavPath, wavPath.Substring(0, wavPath.Length - 4), new NullProgress());
return Path.ChangeExtension(wavPath, "mp3");
}