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

[New Feature] Audio system #6

Open
LazyJazz opened this issue Dec 30, 2023 · 1 comment
Open

[New Feature] Audio system #6

LazyJazz opened this issue Dec 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@LazyJazz
Copy link
Contributor

A game requires an audio system; it is better when combined with an event system.

@LazyJazz LazyJazz added the enhancement New feature or request label Dec 30, 2023
@EnderXie23
Copy link

Now we are able to enjoy sound in the gaming process. The use of a third-party library (irrKlang) is included. However, I only implemented the sound playing functions on Windows, and the player will have to install this library firsthand.

Since the "asset" directory has access limitations, I cannot add audio files to this directory. Currently, I don't quite understand how to use the asset management system, so I tried a relative-path solution which may not work for every computer/IDE. Might anyone help with this?

Link to the pull request: #98

And a demo of soundplay in the game. (Might be a bit noisy when I accelerate/brake)
https://github.com/Yao-class-cpp-studio/GameX/assets/142194629/81ea4846-0533-4382-9656-a7bb3d0aaa80

Ackowledgements to pixabay.com for their free audio files.

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

No branches or pull requests

2 participants