Skip to content

Commit

Permalink
Updating readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarLune committed Nov 9, 2024
1 parent 8d93368 commit 19c0167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion effects/effects.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ func (v *Volume) ApplyEffect(p []byte, bytesRead int) {

sampleRate := audio.CurrentContext().SampleRate()

// We use bytesRead / 4 here because it's PCM audio
brf := float64(bytesRead / 4)
time := brf / float64(sampleRate)
fadeFactor := 1.0

// We use bytesRead / 4 here because it's PCM audio
// Also, the size of the byte buffer can be larger than the amount of bytes actually read from the buffer.
for i := 0; i < bytesRead/4; i++ {

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func main() {
- [X] Bitcrush (?)
- [ ] High-pass Filter
- [ ] Reverb
- [ ] Mix / Fade (between two streams, or between a stream and silence, and over a customizeable time)
- [x] Mix / Fade (between two streams, or between a stream and silence, and over a customizeable time) - Fading is now partially implemented, but not mixing
- [ ] Loop (like, looping a signal after so much time has passed or the signal ends)
- [x] Pitch shifting
- [ ] Playback speed adjustment
Expand Down

0 comments on commit 19c0167

Please sign in to comment.