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

get length of StreamingSoundData from StreamingSoundHandle #72

Open
walksanatora opened this issue Dec 20, 2023 · 3 comments
Open

get length of StreamingSoundData from StreamingSoundHandle #72

walksanatora opened this issue Dec 20, 2023 · 3 comments

Comments

@walksanatora
Copy link

it would be a nice feature if we could query the total length of the audio in a StreamingSound(Data/Handle)
I tried to look into making a MediaSource and piping interleaved PCM into it but... I dont know if that would work.

@tesselode
Copy link
Owner

I just merged in a PR that implements this.

@tesselode
Copy link
Owner

I think I misread this issue when I first looked at it. @walksanatora do you specifically need to be able to get the duration from a StreamingSoundHandle? Or would querying the StreamingSoundData suffice?

@walksanatora
Copy link
Author

I think either or would work. It was just with Sound Data it would have me add another value to my global state struct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants