diff --git a/context.go b/context.go index b91ae5c..c6c9931 100644 --- a/context.go +++ b/context.go @@ -91,7 +91,7 @@ func NewContext(options *NewContextOptions) (*Context, chan struct{}, error) { var bufferSizeInBytes int if options.BufferSize != 0 { - // The underying driver always uses 32bit floats. + // The underlying driver always uses 32bit floats. bytesPerSample := options.ChannelCount * 4 bytesPerSecond := options.SampleRate * bytesPerSample bufferSizeInBytes = int(int64(options.BufferSize) * int64(bytesPerSecond) / int64(time.Second)) diff --git a/driver_nintendosdk.cpp b/driver_nintendosdk.cpp index a087286..659a562 100644 --- a/driver_nintendosdk.cpp +++ b/driver_nintendosdk.cpp @@ -14,7 +14,7 @@ //go:build nintendosdk -// The actual implementaiton will be provided by github.com/hajimehoshi/uwagaki. +// The actual implementation will be provided by github.com/hajimehoshi/uwagaki. #include diff --git a/driver_playstation5.cpp b/driver_playstation5.cpp index 54ca64d..f410b1a 100644 --- a/driver_playstation5.cpp +++ b/driver_playstation5.cpp @@ -14,7 +14,7 @@ //go:build playstation5 -// The actual implementaiton will be provided by github.com/hajimehoshi/uwagaki. +// The actual implementation will be provided by github.com/hajimehoshi/uwagaki. #include diff --git a/driver_winmm_windows.go b/driver_winmm_windows.go index 04f935e..b729060 100644 --- a/driver_winmm_windows.go +++ b/driver_winmm_windows.go @@ -124,7 +124,7 @@ func (c *winmmContext) start() error { wBitsPerSample: bitsPerSample, } - // TOOD: What about using an event instead of a callback? PortAudio and other libraries do that. + // TODO: What about using an event instead of a callback? PortAudio and other libraries do that. w, err := waveOutOpen(f, waveOutOpenCallback) if errors.Is(err, windows.ERROR_NOT_FOUND) { // This can happen when no device is found (#77). @@ -195,7 +195,7 @@ func (c *winmmContext) isHeaderAvailable() bool { var waveOutOpenCallback = windows.NewCallback(func(hwo, uMsg, dwInstance, dwParam1, dwParam2 uintptr) uintptr { // Queuing a header in this callback might not work especially when a headset is connected or disconnected. - // Just signal the condition vairable and don't do other things. + // Just signal the condition variable and don't do other things. const womDone = 0x3bd if uMsg != womDone { return 0 diff --git a/internal/mux/mux.go b/internal/mux/mux.go index c695e7d..9791d27 100644 --- a/internal/mux/mux.go +++ b/internal/mux/mux.go @@ -211,7 +211,7 @@ func (p *Player) Play() { } func (p *playerImpl) Play() { - // Goroutines don't work effiently on Windows. Avoid using them (hajimehoshi/ebiten#1768). + // Goroutines don't work efficiently on Windows. Avoid using them (hajimehoshi/ebiten#1768). if runtime.GOOS == "windows" { p.m.Lock() defer p.m.Unlock() diff --git a/internal/oboe/oboe_oboe_Definitions_android.h b/internal/oboe/oboe_oboe_Definitions_android.h index aaf4d64..ec1a751 100644 --- a/internal/oboe/oboe_oboe_Definitions_android.h +++ b/internal/oboe/oboe_oboe_Definitions_android.h @@ -20,7 +20,7 @@ #include #include -// Oboe needs to be able to build on old NDKs so we use hard coded constants. +// Oboe needs to be able to build on old ANDKs so we use hard coded constants. // The correctness of these constants is verified in "aaudio/AAudioLoader.cpp". namespace oboe { @@ -336,7 +336,7 @@ namespace oboe { /** * Use this for notifying the user when a message has arrived or some - * other background event has occured. + * other background event has occurred. */ Notification = 5, // AAUDIO_USAGE_NOTIFICATION diff --git a/player.go b/player.go index 3015f36..f99818e 100644 --- a/player.go +++ b/player.go @@ -40,7 +40,7 @@ func (p *Player) IsPlaying() bool { return p.player.IsPlaying() } -// Reset clears the underyling buffer and pauses its playing. +// Reset clears the underlying buffer and pauses its playing. // // Deprecated: use Pause or Seek instead. func (p *Player) Reset() {