Skip to content
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

avm1: Various Sound fixes #4026

Merged
merged 4 commits into from
Apr 17, 2021
Merged

avm1: Various Sound fixes #4026

merged 4 commits into from
Apr 17, 2021

Conversation

relrelb
Copy link
Contributor

@relrelb relrelb commented Apr 16, 2021

relrelb added 4 commits April 17, 2021 12:07
Previously it was always rounded down. Change it to the nearest
integer.
These seem to be undocumented.
Looks like Sound.getDuration() behaves exactly as Sound.duration,
and Sound.setDuration() does nothing.
Check Sound.duration and Sound.getDuration() for detached sounds.
Check rounding behavior of Sound.duration and Sound.getDuration()
behind a comment because NullAudioBackend doesn't respect durations.
TODO: Uncomment it once NullAudioBackend returns real durations.
@relrelb relrelb changed the title avm1: Small Sound improvements avm1: Various Sound fixes Apr 17, 2021
@Herschel
Copy link
Member

Thank you!

@Herschel Herschel merged commit 6a34070 into ruffle-rs:master Apr 17, 2021
@relrelb relrelb deleted the sound branch April 17, 2021 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sound duration and position works differently in Ruffle (AS2)
2 participants