dependabot-preview[bot]
a6132a504b
build(deps): bump image from 0.23.12 to 0.23.13
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.12 to 0.23.13.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:21:41 -08:00
relrelb
074731e1a4
audio: Add Nellymoser support
2021-02-02 00:41:01 -08:00
Mads Marquart
1990e51639
avm2: Add UiBackend::display_unsupported_message
...
To allow displaying rich content when unsupported ActionScript 3 content is encountered.
2021-01-31 23:04:20 -08:00
relrelb
7431cd9b10
core: Merge InputBackend into UiBackend
2021-01-30 16:36:45 -08:00
relrelb
fdda75eeec
desktop: Improve ruffle_desktop.rc
2021-01-30 16:32:28 -08:00
dependabot-preview[bot]
c98c8c5ced
build(deps): bump lyon from 0.17.4 to 0.17.5
...
Bumps [lyon](https://github.com/nical/lyon ) from 0.17.4 to 0.17.5.
- [Release notes](https://github.com/nical/lyon/releases )
- [Changelog](https://github.com/nical/lyon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nical/lyon/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-30 16:28:18 -08:00
dependabot-preview[bot]
07fbacc4fb
build(deps): bump isahc from 1.0.3 to 1.1.0
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 1.0.3 to 1.1.0.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/1.0.3...1.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-30 16:26:21 -08:00
dependabot-preview[bot]
6f14490f84
build(deps): bump jpeg-decoder from 0.1.21 to 0.1.22
...
Bumps [jpeg-decoder](https://github.com/image-rs/jpeg-decoder ) from 0.1.21 to 0.1.22.
- [Release notes](https://github.com/image-rs/jpeg-decoder/releases )
- [Changelog](https://github.com/image-rs/jpeg-decoder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/image-rs/jpeg-decoder/compare/v0.1.21...v0.1.22 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-29 11:42:19 -08:00
Mads Marquart
6772f96469
desktop: Use slice unpacking instead of unsafe get_unchecked
2021-01-28 14:39:35 -08:00
Mike Welsh
5e0527c599
desktop: Fix sound envelopes to use proper positions
...
The points in an SWF sound envelope are always in 44.1KHz. The
desktop audio backend would end up using this points in the sound's
sample rate, often causing the envelope to be delayed.
Now the envelope is applied after resampling, and the positions
are scaled based on the output sample rate.
2021-01-27 16:16:30 -08:00
Mike Welsh
a4699a3ca5
audio: Sound transforms apply to stream sounds
...
This unifies the code path for event sounds and stream sounds.
Both `AudioBackend::start_stream` and `start_sound` return a
`SoundHandle`. `stop_stream` is removed (`stop_sound` can be
used for both cases).
Also removes references to `CharacterId` from the `AudioBackend`
(instead, an increasing ID is returned to identiy streams while
loading).
2021-01-27 15:25:04 -08:00
Mike Welsh
95ce2abf17
audio: Remove AudioBackend::stop_sounds_with_handle/is_sound_playing_with_handle
2021-01-27 15:25:04 -08:00
Mike Welsh
da2dd3b36c
core: Implement sound transforms and Sound.setPan
2021-01-27 15:25:04 -08:00
Mike Welsh
34f60b127a
core: Add AudioManager to handle actively playing sounds
...
Add an AudioManager struct to handle this list of actively playing
sounds. This will maintain information for each sound instance,
such as the owning display object, AVM1 object, etc.
This will allow us to implement the awkward AVM1 Sound API in a
fairly backend-agnostic way.
2021-01-27 15:25:04 -08:00
Mads Marquart
4c3783b6ff
desktop: Also use flashvars parameters when running local files
2021-01-26 16:27:20 -08:00
Mads Marquart
ad137a2377
desktop: Change Windows Subsystem to not launch unnecessary console
...
Basically just copied from what alacritty is doing:
530de00049/alacritty/src/main.rs
There are two functional changes:
- When launching normally, you no longer see a console window quickly flashing
- When launching via. console, the program is detached (but still logs to the console)
2021-01-25 01:31:14 -08:00
Mads Marquart
5d887861da
desktop: Fix windows cross compilation of assets
2021-01-24 18:11:48 -08:00
dependabot-preview[bot]
239ccb3511
build(deps): bump jpeg-decoder from 0.1.20 to 0.1.21
...
Bumps [jpeg-decoder](https://github.com/image-rs/jpeg-decoder ) from 0.1.20 to 0.1.21.
- [Release notes](https://github.com/image-rs/jpeg-decoder/releases )
- [Changelog](https://github.com/image-rs/jpeg-decoder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/image-rs/jpeg-decoder/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-24 11:52:39 -08:00
dependabot-preview[bot]
ef428d95a7
build(deps): bump lyon from 0.17.3 to 0.17.4
...
Bumps [lyon](https://github.com/nical/lyon ) from 0.17.3 to 0.17.4.
- [Release notes](https://github.com/nical/lyon/releases )
- [Changelog](https://github.com/nical/lyon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nical/lyon/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-23 19:08:26 -08:00
Mike Welsh
da1e2801a2
chore: Appease clippy
2021-01-18 21:23:50 -08:00
dependabot-preview[bot]
e4d7e73ef1
build(deps): bump lyon from 0.17.1 to 0.17.3
...
Bumps [lyon](https://github.com/nical/lyon ) from 0.17.1 to 0.17.3.
- [Release notes](https://github.com/nical/lyon/releases )
- [Changelog](https://github.com/nical/lyon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nical/lyon/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-14 03:04:25 -08:00
Toad06
7480e836ec
web: Changes from review
2021-01-11 13:16:00 -08:00
dependabot-preview[bot]
7c1b5c4e68
build(deps): bump isahc from 1.0.2 to 1.0.3
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/1.0.2...1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-10 17:18:55 -08:00
MrCheeze
c2470d39fc
desktop: Increase window maximum size to 32767x32767
...
By default, winit limits the window size to the screen resolution.
Since some flashes are larger than this, increase the limit to an
arbitrarily-chosen larger constant.
2021-01-10 15:11:34 -08:00
MrCheeze
054db37ba0
desktop: Fix rendering when window is has unexpected size ( close #1631 )
...
Winit's WindowBuilder will sometimes create a window whose size is
smaller than requested. Therefore, instead of assuming the actual
window size is requested size * scaling, just check what the true
size is. (window.inner_size() also takes scaling into account.)
This fixes at least one issue where rendering would fail on Windows
with the Vulkan backend due to the incorrect size being used.
2021-01-10 15:11:34 -08:00
relrelb
55f348f014
desktop: Prevent entering/exiting fullscreen repeatedly
2021-01-08 11:59:08 -08:00
relrelb
b2867aa3b9
desktop: Add fullscreen exit keyboard shortcut
...
Flash Player also exits fullscreen when escape is pressed.
2021-01-08 11:59:08 -08:00
relrelb
030ff398ef
desktop: Handle fullscreen keyboard shortcut in its own case
2021-01-08 11:59:08 -08:00
Mike Welsh
cb9bdcdfdb
desktop: Hook up DesktopUiBackend::is_fullscreen
2021-01-07 12:49:36 -08:00
relrelb
6270156c74
desktop: Change fullscreen shortcut to Alt+Enter
...
And also remove the Escape shortcut because it might interfere with
games.
2021-01-07 12:49:36 -08:00
relrelb
abe608fd4d
desktop: Add fullscreen keyboard shortcut
2021-01-07 12:49:36 -08:00
Mike Welsh
01aca9f861
web: Remove upgrade_to_https param from Ruffle::new
...
Grab it from the `config` directly instead of using an extra param.
2021-01-07 11:46:07 -08:00
Mike Welsh
e9da6a13f0
core: Add letterbox setting
...
Player::set_letterbox can be used to control the letterbox behavior.
* Letterbox::Off => no letterbox (flash behavior)
* Letterbox::Fullscreen => letterbox only in fullscreen (web default)
* Letterbox::On => always letterbox (desktop default)
2021-01-07 11:46:07 -08:00
relrelb
9a8edda8a6
chore: Update lyon to 0.17.1
2021-01-04 18:08:14 -08:00
dependabot-preview[bot]
54367aafa0
build(deps): bump isahc from 0.9.14 to 1.0.2
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 0.9.14 to 1.0.2.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/0.9.14...1.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-03 00:26:19 -08:00
Mike Welsh
94cb6e1680
desktop: Avoid panic on fetching invalid URLs
2020-12-31 16:36:02 -08:00
Mike Welsh
6aafb46b49
desktop: Don't render while minimized
...
On desktop, don't render while the window is minimized.
In the wgpu backend, don't panic if swap chain fails to grab a
texture. Instead recreate the swap chain and bail on the current
frame.
Fixes panic when minimizing with the wgpu vulkan backend (#2065 ).
2020-12-28 16:00:13 -08:00
Mike Welsh
8222d3095b
desktop: Add --timedemo benchmark
...
Add --timedemo for benchmarking, which will run the given SWF as
quickly as possible for 5000 frames or the end of the root
timeline, whichever comes first. The total duration will be output
upon completion.
2020-12-26 23:59:12 -08:00
Sam Morrow
38bdb8b39a
web/desktop: Add basic dialog handling ( closes #1978 )
2020-12-23 19:08:18 -08:00
Mike Welsh
367404ddd8
core: SharedObjects are bucketed by domain
...
Key SharedObjects on the domain and path where the SWF is hosted,
and implement the localPath and secure parameters.
Fix #855 .
2020-12-22 14:18:06 -08:00
Sam Morrow
c4d7b24629
web: Fix cors issues with http (close ruffle-rs#1486)
2020-12-14 05:51:28 -08:00
dependabot-preview[bot]
f394e4d9ec
build(deps): bump winit from 0.23.0 to 0.24.0
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/rust-windowing/winit/releases )
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-windowing/winit/compare/v0.23.0...v0.24.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-10 13:24:55 -08:00
dependabot-preview[bot]
70e7894a14
build(deps): bump isahc from 0.9.13 to 0.9.14
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 0.9.13 to 0.9.14.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/0.9.13...0.9.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-08 23:53:57 -08:00
Sam Morrow
d5e597052e
desktop: Add file dialogs to Ruffle if no FILE argv V2 ( close #1774 )
...
Introduce file dialogs if no FILE argv is passed.
Use altered version of due to https://github.com/jdm/tinyfiledialogs-rs/issues/19
2020-12-04 13:04:43 -08:00
Mike Welsh
b7d28e5e7e
chore: Remove unnecessary debug output
2020-11-29 02:33:09 -08:00
Mike Welsh
dafe7e5027
avm1: Implement Key.getAscii
2020-11-29 02:31:10 -08:00
Nathan Adams
eca4ba0313
desktop: Potentially fixed panic when windows can't make a path absolute
2020-11-26 14:04:18 -08:00
dependabot-preview[bot]
93c401286c
build(deps): bump image from 0.23.11 to 0.23.12
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.11 to 0.23.12.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.23.11...v0.23.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-18 16:29:07 -08:00
dependabot-preview[bot]
633bddfd72
build(deps): bump env_logger from 0.8.1 to 0.8.2
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.1...v0.8.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-18 16:26:21 -08:00
dependabot-preview[bot]
90d1ae53b7
build(deps): bump isahc from 0.9.12 to 0.9.13
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 0.9.12 to 0.9.13.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/0.9.12...0.9.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-14 23:33:37 -08:00