Skip to content

Commit

Permalink
Fix comment grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
wez470 committed Jun 27, 2021
1 parent 8291a5f commit 2742650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub fn start_frontend(cpu: &mut Cpu, save_file: Option<PathBuf>) {
let mut controllers = vec![];

let sdl_audio = sdl.audio().expect("Failed to access SDL audio subsystem");
// We would use 44100Hz, but the closest to that frequency we can output is every 95 clock cycles, which is a little to fast
// (4194304 / 44100 ~= 95.1). This causes us to output audio to the queue to fast for the speed at which it's being played and
// drifts the audio out of sync over time. 44150Hz is much closer to 95 clock cycles and makes the out of sync issue happen
// We would use 44100Hz, but the closest to that frequency we can output is every 95 clock cycles, which is a little too fast
// (4194304 / 44100 ~= 95.1). This causes Rugby to output audio to the queue too fast for the speed at which it's being played and
// drifts the audio out of sync over time. 44150Hz is closer to 95 clock cycles and makes the out of sync issue happen
// much slower
let desired_spec = AudioSpecDesired {
freq: Some(44150),
Expand Down

0 comments on commit 2742650

Please sign in to comment.