|
|
|
@ -84,8 +84,10 @@ fn main() {
@@ -84,8 +84,10 @@ fn main() {
|
|
|
|
|
fill_buffer(&mut audio_data1[..], NOTEFREQ[4]); |
|
|
|
|
let mut audio_data2 = audio_data1.clone(); |
|
|
|
|
|
|
|
|
|
let mut audio_buffer1 = WaveBuffer::new(audio_data1, AudioFormat::PCM16Stereo).expect("Couldn't sync DSP cache"); |
|
|
|
|
let mut audio_buffer2 = WaveBuffer::new(audio_data2, AudioFormat::PCM16Stereo).expect("Couldn't sync DSP cache"); |
|
|
|
|
let mut audio_buffer1 = |
|
|
|
|
WaveBuffer::new(audio_data1, AudioFormat::PCM16Stereo).expect("Couldn't sync DSP cache"); |
|
|
|
|
let mut audio_buffer2 = |
|
|
|
|
WaveBuffer::new(audio_data2, AudioFormat::PCM16Stereo).expect("Couldn't sync DSP cache"); |
|
|
|
|
|
|
|
|
|
let mut wave_info1 = WaveInfo::new(&mut audio_buffer1, false); |
|
|
|
|
let mut wave_info2 = WaveInfo::new(&mut audio_buffer2, false); |
|
|
|
|