-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement Audio (Table provided mechanical audio) #57
Comments
How does VPX implements audio? is the ROM used for feedback? |
A |
Ok so this is about handling the mechanical sound effects then, right? |
This issue, yes, entirely. |
I've added the parsing to feature/sound. What's left to do is implement the scripting API: There's another way of playing sounds however, which is through external files in VP's |
Note that the table loader doesn't actually load the sound yet - it just parses its metadata and saves the position where the sound data is stored within the stream. All the data is in It might be a good idea to link the data via a Blob to an URL with createObjectURL, so it's accessible to any sound library. Like it's currently done with textures as well. |
About pre-loading, here's how it currently works with textures:
So your pre-loading would loop through the table's Your Howler implementation can then work with those URLs as if they were normal remote URLs. |
Audio is currently completely absent, even on parse level, i.e. the audio streams are skipped. What needs to be done:
We might be able to stream the audio directly from the table blob. To check. A good high-level audio library seems to be Howler.
The text was updated successfully, but these errors were encountered: