David Wendt
3b1ab0e987
Fix the fallback object detection.
2019-11-17 17:43:19 -05:00
David Wendt
5b5aaecb83
Interdictions are now called polyfills
2019-11-17 17:43:19 -05:00
David Wendt
2fa42e3b31
Allow fault tolerance for naming conflicts with Ruffle elements
2019-11-17 17:43:19 -05:00
David Wendt
d53f9c8f47
Allow configuring the Webpack path
2019-11-17 17:43:19 -05:00
David Wendt
fbca5a0a6f
Fix broken interdictions
2019-11-17 17:43:19 -05:00
David Wendt
ccd763b696
Tolerate Ruffle loading after the page loads
2019-11-17 17:43:19 -05:00
David Wendt
6d34997975
Fix some bugs in the Public API
2019-11-17 17:43:19 -05:00
David Wendt
4163ea7975
Add the ability to upgrade the Public API itself.
...
This isn't intended to be used right away.
2019-11-17 17:43:19 -05:00
David Wendt
6b0881e3f2
Add proper version negotiation
2019-11-17 17:43:19 -05:00
David Wendt
db01ee8984
Add class to parse version strings
2019-11-17 17:43:19 -05:00
David Wendt
bb184469d8
Actually install new sources
2019-11-17 17:43:19 -05:00
David Wendt
f957ec4744
Create a standard list of interdictions rather than checking for specific strings.
2019-11-17 17:43:19 -05:00
David Wendt
d1aa71e488
Add explicit classes for the Ruffle Public API.
2019-11-17 17:43:19 -05:00
David Wendt
5dcbe43fe1
Consolidate public API into a shared module
2019-11-17 17:43:19 -05:00
David Wendt
8d29af6d49
Configure selfhosted Ruffle to also create a RufflePlayer API.
2019-11-17 17:43:19 -05:00
David Wendt
4742baf40d
Make interdictions configured via a window object call
2019-11-17 17:43:18 -05:00
David Wendt
8d9f1ec237
Opt the demo page out of Ruffle
2019-11-17 17:43:18 -05:00
David Wendt
48fd6cc7a7
Fix declarative configuration reader
2019-11-17 17:43:18 -05:00
David Wendt
fbb818d22a
Fix the names of the JS parts of Ruffle.
2019-11-17 17:43:18 -05:00
David Wendt
485f166df3
Add data attributes to declaratively control Ruffle.
2019-11-17 17:43:18 -05:00
David Wendt
fe782e5db3
Create a third web target: "selfhosted".
...
Currently, selfhosted just omits some of the crazier interdictions.
2019-11-17 17:43:18 -05:00
Mike Welsh
09b6c086d6
chore: Squelch unneeded_filed_pattern warning
2019-11-17 17:36:21 -05:00
Mike Welsh
7f6bbf7b42
ci: Bump to Rust 1.39
2019-11-17 17:36:21 -05:00
Mike Welsh
aabb3c083d
chore: Add Cargo.lock
2019-11-17 17:36:21 -05:00
Mike Welsh
63b5587762
chore: Bump glium to 0.26-alpha5
2019-11-17 17:36:21 -05:00
Mike Welsh
e3d0d9031d
core: Handle empty JPEGTables tags ( fix #116 )
2019-11-11 17:08:08 -05:00
David Wendt
1236b5491e
Ensure calls to `getURL`, invocations of `ActionGetURL`, and other functionality that writes locals doesn't panic due to double mutable borrows.
2019-11-11 14:09:25 -05:00
David Wendt
4e16c91dbb
Add tests for `locals_into_form_values`.
2019-11-11 14:09:25 -05:00
Mike Welsh
97edbc98df
core: Bump winit, glutin, glium versions
2019-11-11 14:06:41 -05:00
Mike Welsh
b05745da01
audio: Fix uninit warnings in MP3 decoder in Rust 1.39
2019-11-11 14:06:41 -05:00
Mike Welsh
b343ba14a2
web: Implement event sound envelopes
2019-10-30 19:26:19 -07:00
Mike Welsh
7d98c87a33
desktop: Implement event sound envelopes
2019-10-30 19:26:19 -07:00
David Wendt
0d4e21162a
Implement `ActionEnumerate2`.
2019-10-30 19:26:06 -07:00
Mike Welsh
cfc92d81ad
ci: Use Rust 1.38 CircleCI image so Rust is cached
2019-10-30 11:20:01 -07:00
Mike Welsh
a14b3ad587
ci: Bump cache version to flush cache
2019-10-30 11:09:31 -07:00
Mike Welsh
63be104739
docs: Add module documentation for MovieClip
...
(Really an excuse to kick CI to re-run)
2019-10-30 10:59:53 -07:00
Mike Welsh
e08a735799
desktop: Use SeekSamples to account for MP3 encoder delay
2019-10-29 23:36:51 -07:00
Mike Welsh
158f2a6fa2
web: Use SeekSamples to account for MP3 encoder delay
2019-10-29 23:36:51 -07:00
Mike Welsh
f9b23c6e0c
web: Handle gaps between SoundStreamBlocks
2019-10-29 23:36:51 -07:00
Mike Welsh
ab58c37feb
core: Handle gaps between StreamSoundBlocks
2019-10-29 23:36:51 -07:00
Mike Welsh
443dcfaeea
core: Stop stream sound when gaps are encountered
...
Generally there is one SoundStreamBlock per frame in a MovieClip.
However, if there are gaps between stream sounds, the stream must
stop and then pick up when the next block is encountered.
TODO: Sometimes Flash will do weird stuff and export a stream that
is plainly out of sync if there are gaps between sounds (the old
trick was to put a silent stream across the entire timeline to fix
this). This happens when the streams are too close together with
MP3 encoding. Investigate this more.
2019-10-29 23:36:51 -07:00
Mike Welsh
1a7959b96d
audio: Initial syncing of stream sound to MovieClip timeline
2019-10-29 23:36:51 -07:00
Mike Welsh
9e83f27afd
tests: Add test for DoInitAction
2019-10-29 11:11:25 -07:00
David Wendt
6a81b5327d
Implement `DoInitAction`.
...
This pushes an extra `undefined` onto the stack to fix underflow in AS2 interface declarations.
It is currently unknown if this is a miscompilation or if some other value is supposed to be there.
# Conflicts:
# core/src/avm1.rs
# core/src/avm1/object.rs
2019-10-29 11:11:25 -07:00
Mike Welsh
33c0bbd0ce
desktop: Fix incorrect rendering of bitmaps w/ color transforms
...
The premultiplied alpha was not properly considered when there was
a color transform on a bitmap. Now the shader unmultiplies the
alpha before applying the color transform, and the remultiplies it.
2019-10-29 00:03:29 -07:00
Mike Welsh
35be57553e
desktop: Improve animation sync
...
The timing on desktop was causing the movie to run too slow,
causing it to get out of sync. Now it should run at the correct
speed.
2019-10-28 21:05:18 -07:00
Mike Welsh
cb26342a24
core: Fix regression in goto when replacing a previous child
...
Goto forward that did a replace was not replacing the previous child.
TODO: Figure out how to write a regression test for this; will
need a special test harness probably because this only happens with
Graphics, not MovieClips, so we can't attach AS to them to get
trace output.
2019-10-28 03:47:57 -07:00
Mike Welsh
f07dfb4eb6
web: Implement ADPCM stream sounds on web
2019-10-28 02:51:46 -07:00
Mike Welsh
eaea6aaf20
audio: Fix audio for ADPCM stream sounds
...
When a stream sound uses ADPCM compression, the ADPCM header is
included in each SoundStreamBlock (as opposed to stream sounds
in the other formats). This header wasn't being parsed, resulting
in corrupted audio (see https://homestarrunner.com/main12.swf ).
2019-10-28 02:51:46 -07:00
Mike Welsh
01f47d675c
core: Move UpdateContext into context submodule
2019-10-27 13:49:47 -07:00