Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Oto v2 #130

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Use Oto v2 #130

wants to merge 3 commits into from

Conversation

MarkKremer
Copy link
Contributor

@MarkKremer MarkKremer commented Sep 1, 2021

Closes #128

@cebarks cebarks changed the title Use Oto v2 WIP: Use Oto v2 Sep 2, 2021
go.mod Outdated Show resolved Hide resolved
@mewmew mewmew mentioned this pull request Oct 13, 2022
mu.Lock()
mixer.Stream(samples)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that in the previous version, error's are ignored. Is this intentional?

player.Close()
context.Close()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So closing the context isn't supported by Oto. I think this is the only breaking change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, is this problematic?

Copy link
Contributor Author

@MarkKremer MarkKremer Oct 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned it because I don't really understand what happens when the context is or isn't closed. If it wouldn't be problematic with Oto, I don't think it will be with Beep. However, I do not know if the method description of speaker.Close is accurate.

@@ -5,7 +5,7 @@ go 1.14
require (
github.com/gdamore/tcell v1.3.0
github.com/hajimehoshi/go-mp3 v0.3.0
github.com/hajimehoshi/oto v0.7.1
github.com/hajimehoshi/oto/v2 v2.4.0-alpha.4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alpha version contains a fix for this locking problem

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alpha.5 was released very recently.

@MarkKremer MarkKremer marked this pull request as ready for review October 20, 2022 12:38
@MarkKremer MarkKremer changed the title WIP: Use Oto v2 Use Oto v2 Oct 20, 2022
@MarkKremer
Copy link
Contributor Author

@faiface

@hajimehoshi
Copy link

Who are the maintainers of this project?

@samhocevar
Copy link

Hi! Is it possible to help with this PR in any way? Does it need more testing? Being stuck with Oto v1.0 is really not ideal.

@hajimehoshi
Copy link

IMHO, this project should be archived if this PR cannot be merged...

@MarkKremer
Copy link
Contributor Author

Maybe @cebarks or @dusk125 can review this?

@hajimehoshi
Copy link

https://pkg.go.dev/github.com/hajimehoshi/oto/[email protected]

Oto v2.4.0 has been released

@samhocevar
Copy link

How alive is this project? Other more simple yet important fixes such as #154 don’t get merged either.

Apparently 883 repositories rely on this library. Isn’t it time to get something done? I can’t maintain this library alone but I’m definitely willing to help if the current maintainers are overwhelmed and are looking for assistance, or if other people step up and fork. Please let me know.

@hajimehoshi
Copy link

Oto v3 era is starting now.

https://github.com/ebitengine/oto

@duysqubix duysqubix mentioned this pull request Oct 10, 2023
MarkKremer added a commit to MarkKremer/beep that referenced this pull request Apr 6, 2024
Add more tests and benchmarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oto v2.0 has been release :)
4 participants