public static void ExportWAVSamples(string fullPath, int rate) { byte[][] samples = new byte[BRRSamples.Length][]; int i = 0; foreach (var brr in BRRSamples) { samples[i++] = BRR.BRRToWAV(brr.Sample, rate); } Do.Export(samples, fullPath + "\\" + LazyShell.Model.GetFileNameWithoutPath() + " - WAV Samples\\" + "wav-sample", "SAMPLE", true); }
private void RefreshWAVBuffer() { wav = BRR.BRRToWAV(sample.Sample, sample.Rate); loop = BRR.BRRToWAV(sample.Sample, sample.Rate, sample.LoopStart); picture.Invalidate(); }
public static void ExportWAVSample(string fullPath, int index, int rate) { Do.Export(BRR.BRRToWAV(BRRSamples[index].Sample, rate), "wav-sample-" + index.ToString("d3") + ".wav", fullPath); }