You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Force Surge soundtrack was generated using Web Audio API oscillators (sawtooth + triangle waves through a compressor), which produced harsh distorted playback.
What changed:
Replaced oscillator synthesis with a pre-recorded cinematic audio file (8-second force surge soundtrack with sub-bass rumble, rising whoosh, impact transient, harmonic layers, and rhythmic pulses)
Audio is loaded as MP3 (with OGG fallback), decoded via AudioContext, and played with the same volume swell envelope as the original
First play fetches and caches the decoded buffer; subsequent plays are instant
Falls back silently if audio fails to load (graceful degradation)
Why this approach is better:
Pre-recorded audio sounds clean and cinematic (not distorted)
No oscillator tuning or compressor configuration needed
Smaller audio files (120KB OGG) vs. complex JS synthesis
Uses the existing addPassthroughCopy("src/assets") for build integration
… Surge audio
Replaces the Web Audio API oscillator synthesis with pre-recorded
cinematic audio files (MP3 + OGG) that play cleanly without distortion.
- Adds force-surge.mp3 and force-surge.ogg to src/assets/audio/
- Replaces playForceSoundtrack() to load, decode and play the buffer
- Preserves the original volume swell envelope (1.5s ramp-in, 2s fade-out)
- Falls back silently if audio fails to load
- Existing .eleventy.js addPassthroughCopy covers the audio directory
ClosesNextCommunity#317
We reviewed changes in 5780631...2d03ba6 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
'duration' is already declared in the upper scope on line 470 column 30
Two variables can have the same name if they're declared in different scopes. In the example below, the parameter x is said to "shadow" the variable x declared above it. The outer x can no longer be accessed inside the sum function.
The reason will be displayed to describe this comment to others. Learn more.
'duration' is already declared in the upper scope on line 485 column 30
Two variables can have the same name if they're declared in different scopes. In the example below, the parameter x is said to "shadow" the variable x declared above it. The outer x can no longer be accessed inside the sum function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #317.
The Force Surge soundtrack was generated using Web Audio API oscillators (sawtooth + triangle waves through a compressor), which produced harsh distorted playback.
What changed:
Why this approach is better:
addPassthroughCopy("src/assets")for build integration