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

feat: Get AudioSource by path #163

Open
1 task
te8uekm12 opened this issue Jan 2, 2025 · 0 comments
Open
1 task

feat: Get AudioSource by path #163

te8uekm12 opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@te8uekm12
Copy link

te8uekm12 commented Jan 2, 2025

Description

When we create an AudioSource with using loadFile, loadMem, loadAssets, or loadUrl, we provide a unique path or key.

We can retrieve a collection of loaded AudioSources by calling soLoud.activeSounds, but we cannot fetch a specific AudioSource by its unique path or key.

I think it would be more convenient if we had a method that returns an AudioSource by its path or key, or if this information were added to the AudioSource class.

Currently, I have to maintain a map of path/key to soundHash in order to access a specific AudioSource.

Requirements

  • Checklist of requirements to be fulfilled

Additional Context

Add any other context or screenshots about the feature request go here.

@alnitak alnitak self-assigned this Jan 13, 2025
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