Skip to content

Commit db8ab61

Browse files
authored
all: fix typos (#267)
Found via `typos --hidden --format brief`
1 parent ad2287a commit db8ab61

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func NewContext(options *NewContextOptions) (*Context, chan struct{}, error) {
9191

9292
var bufferSizeInBytes int
9393
if options.BufferSize != 0 {
94-
// The underying driver always uses 32bit floats.
94+
// The underlying driver always uses 32bit floats.
9595
bytesPerSample := options.ChannelCount * 4
9696
bytesPerSecond := options.SampleRate * bytesPerSample
9797
bufferSizeInBytes = int(int64(options.BufferSize) * int64(bytesPerSecond) / int64(time.Second))

driver_nintendosdk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
//go:build nintendosdk
1616

17-
// The actual implementaiton will be provided by github.com/hajimehoshi/uwagaki.
17+
// The actual implementation will be provided by github.com/hajimehoshi/uwagaki.
1818

1919
#include <cstddef>
2020

driver_playstation5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
//go:build playstation5
1616

17-
// The actual implementaiton will be provided by github.com/hajimehoshi/uwagaki.
17+
// The actual implementation will be provided by github.com/hajimehoshi/uwagaki.
1818

1919
#include <cstddef>
2020

driver_winmm_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (c *winmmContext) start() error {
124124
wBitsPerSample: bitsPerSample,
125125
}
126126

127-
// TOOD: What about using an event instead of a callback? PortAudio and other libraries do that.
127+
// TODO: What about using an event instead of a callback? PortAudio and other libraries do that.
128128
w, err := waveOutOpen(f, waveOutOpenCallback)
129129
if errors.Is(err, windows.ERROR_NOT_FOUND) {
130130
// This can happen when no device is found (#77).
@@ -195,7 +195,7 @@ func (c *winmmContext) isHeaderAvailable() bool {
195195

196196
var waveOutOpenCallback = windows.NewCallback(func(hwo, uMsg, dwInstance, dwParam1, dwParam2 uintptr) uintptr {
197197
// Queuing a header in this callback might not work especially when a headset is connected or disconnected.
198-
// Just signal the condition vairable and don't do other things.
198+
// Just signal the condition variable and don't do other things.
199199
const womDone = 0x3bd
200200
if uMsg != womDone {
201201
return 0

internal/mux/mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (p *Player) Play() {
214214
}
215215

216216
func (p *playerImpl) Play() {
217-
// Goroutines don't work effiently on Windows. Avoid using them (hajimehoshi/ebiten#1768).
217+
// Goroutines don't work efficiently on Windows. Avoid using them (hajimehoshi/ebiten#1768).
218218
if runtime.GOOS == "windows" {
219219
p.m.Lock()
220220
defer p.m.Unlock()

internal/oboe/oboe_oboe_Definitions_android.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <cstdint>
2121
#include <type_traits>
2222

23-
// Oboe needs to be able to build on old NDKs so we use hard coded constants.
23+
// Oboe needs to be able to build on old ANDKs so we use hard coded constants.
2424
// The correctness of these constants is verified in "aaudio/AAudioLoader.cpp".
2525

2626
namespace oboe {
@@ -381,7 +381,7 @@ namespace oboe {
381381

382382
/**
383383
* Use this for notifying the user when a message has arrived or some
384-
* other background event has occured.
384+
* other background event has occurred.
385385
*/
386386
Notification = 5, // AAUDIO_USAGE_NOTIFICATION
387387

player.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (p *Player) IsPlaying() bool {
4040
return p.player.IsPlaying()
4141
}
4242

43-
// Reset clears the underyling buffer and pauses its playing.
43+
// Reset clears the underlying buffer and pauses its playing.
4444
//
4545
// Deprecated: use Pause or Seek instead.
4646
func (p *Player) Reset() {

0 commit comments

Comments
 (0)