Boris Reitman
unread,Sep 12, 2010, 5:50:43 AM9/12/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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);
}