freezy

Results 291 comments of freezy

#477 fixes the multi disposal. You should open the connection on `Init()` and close it on `Dispose()`. Does that make this PR obsolete?

> The downside is that you can't open multiple subsequent tables in VPX anymore but need to close VPX after each table. What's the upside, then? ;)

A `.vpx` file ships with a bunch of `.wav` or MP3 files, and the table script plays them. That's for mechanical sound effects, the actual ROM sound isn't handled at...

I've added the parsing to [feature/sound](https://github.com/vpdb/vpx-js/tree/feature/sound). What's left to do is implement the scripting API: [TODO](https://github.com/vpdb/vpx-js/blob/master/lib/vpt/global-api.ts#L80-L86) - [Reference](https://github.com/vpinball/vpinball/blob/master/pintable.cpp#L170-L175) There's another way of playing sounds however, which is through external files...

Note that the table loader doesn't actually load the sound yet - it just parses its metadata and saves [the position](https://github.com/vpdb/vpx-js/blob/feature/sound/lib/vpt/sound/pin-sound-data.ts#L31-L39) where the sound data is stored within the stream....

About pre-loading, here's how it currently works with textures: - The public VPX-JS API to create the 3D scene is [`generateTableNode()`](https://github.com/vpdb/vpx-js/blob/master/lib/vpt/table/table.ts#L404). It's currently called like that because it creates a...

Yes I got that, the question is whether this information is crucial during development. For example, being aware that a 2-week old version of vpx-js is used is important because...

I'm still leaning towards closing. But let's wait a few days, and if you come across a case where this would have saved you time during development, I'll let you...

@neophob is this a blocker for you?