-
Notifications
You must be signed in to change notification settings - Fork 4
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
Audio #7
Comments
I like the idea. Only problem is that right now I am completely focused on getting text to work as I need it for multiple upcoming projects. I can create the template for you and link it in CMake. Do you want the audio player to be static and usable from everywhere or a class that you have to create? |
I added OpenAL as a dependency to the CMake to start working on it. |
Thanks for adding OpenAL to the cmake file. I'll get to adding it this weekend probably. Also, do you have a UI engine yet, because you can use my GLUI library; it works with OpenGL 3.3+ really well. Anyways, I'll contribute more soon! |
I actually have just finished the framework and I will work on implementing you GLUI library later! I wanted to add graphs and I immediately thought of your library. |
thanks for adding OpenAL! Could you make some template Sound and Sound Manager classes for me that integrate the engine's module architecture? Can you please make a SoundManager class that has functions for:
and a Sound class that has functions for:
just leave these functions back and I will figure out the OpenAL for making them work. |
should be about 2 hours of coding for me to get the job done |
Ok there is now a header file called Utility/Audio.h and a corresponding source file. I put some basic framework and I included the al.h header. Go ahead! |
Properties are managed via the BitField class which uses the bits in a byte to store boolean values. You can store 8 bools in the same space as the normal bool primitive. To add more properties, all you need to do is to add a value to the enum called Properties in Sound. Then you can use the setProperty() function to edit it. Currently, the only property there is looping, but you can add more. |
The BitField class is fully documented so you can read up on that. |
I just added some play and stop functionality to the Sound class. I'll work on adding volume controls and other features soon. |
Should I still work on other audio features, or should we close this issue? |
1 similar comment
Should I still work on other audio features, or should we close this issue? |
Up to you. It's very basic right now, but if you want to work on it you can. It's not really a top priority though |
Add Audio support.
I think I can do this if I understood the structure of the engine. If you created some template classes to put te audio code I could write the OpenAL code. What do you think?
The text was updated successfully, but these errors were encountered: