Skip to content

Commit

Permalink
Increase webaudio sample rate threshold to match firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Oct 11, 2018
1 parent ceb2cd2 commit 600f997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/audiobuffer.rs
Expand Up @@ -20,10 +20,10 @@ use servo_media::audio::buffer_source_node::AudioBuffer as ServoMediaAudioBuffer
use std::cmp::min;
use std::ptr::{self, NonNull};

// This range is defined by the spec.
// Spec mandates at least [8000, 96000], we use [8000, 192000] to match Firefox
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createbuffer
pub const MIN_SAMPLE_RATE: f32 = 8000.;
pub const MAX_SAMPLE_RATE: f32 = 96000.;
pub const MAX_SAMPLE_RATE: f32 = 192000.;

type JSAudioChannel = Heap<*mut JSObject>;

Expand Down

This file was deleted.

0 comments on commit 600f997

Please sign in to comment.