Skip to content

Commit

Permalink
remove download function
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Aug 21, 2024
1 parent 4b0a052 commit 784c557
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3008,12 +3008,6 @@ const SINEWAVE: [f32; 3000] = [
0.05130394f32,
];

fn download_audio_file(url: &str) -> Result<Vec<u8>, reqwest::Error> {
let response = get(url)?;
let bytes = response.bytes()?;
Ok(bytes.to_vec())
}

#[test]
fn fixed_test() {
let hoge = I1F15::from_num(0.5);
Expand Down Expand Up @@ -3059,11 +3053,10 @@ fn aiff_linearpcm_specs() {
#[test]
fn wav_float32_specs() {
// Download the wave file using reqwest
let url = "https://github.com/AkiyukiOkayasu/TestToneSet/raw/main/Sine440Hz_1ch48000HzFP32.wav";
let wav = download_audio_file(url).unwrap();
let wav = include_bytes!("./resources/Sine440Hz_1ch_48000Hz_32FP.wav");

// Use PcmReaderBuilder to read the PCM specs
let reader = PcmReaderBuilder::new(&wav).build().unwrap();
let reader = PcmReaderBuilder::new(wav).build().unwrap();
let spec = reader.get_pcm_specs();

// Assertions
Expand Down

0 comments on commit 784c557

Please sign in to comment.