Artifacts in Wave output

4 views
Skip to first unread message

Boris Reitman

unread,
Sep 12, 2010, 5:50:43 AM9/12/10
to standingwave-discussion
Hi, I am using standingwave3. Here's a test code i'm using to save
music as a wav, but the output have strange artifacts, as if it is
clipped. It happens once in a while (not continuous). The commented
code is simply playing the wave in the player, and in this case I
don't hear the artifacts.

public function testUploadWav():void {
var performance:ListPerformance = new ListPerformance();
var mix = theMix.eMap.mix;
mix.addToPerformance(performance, 0);

var audioPerformer = new AudioPerformer(performance, new
AudioDescriptor());
//var audioPlayer = new AudioPlayer();
//audioPlayer.play(audioPerformer);
//return;
var sample = audioPerformer.getSample(44100 * 10);
var wavData:ByteArray = WaveFile.writeSampleToWavFile(sample);
webserviceInterface.UploadTrack("test", wavData);
}
Reply all
Reply to author
Forward
0 new messages