Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion driver_nintendosdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstddef>

Expand Down
2 changes: 1 addition & 1 deletion driver_playstation5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstddef>

Expand Down
4 changes: 2 additions & 2 deletions driver_winmm_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/mux/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions internal/oboe/oboe_oboe_Definitions_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <cstdint>
#include <type_traits>

// 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 {
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading