Skip to content

Commit

Permalink
tests: Expand sound
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
relrelb committed Apr 17, 2021
1 parent 7140062 commit c921f70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/tests/swfs/avm1/sound/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ left-to-right: 0
right-to-left: 0
right-to-right: 100

sound.duration: undefined
sound.getDuration(): undefined

Sound.setVolume(50.5)
volume: 50
pan: 0
Expand Down
Binary file modified core/tests/swfs/avm1/sound/test.fla
Binary file not shown.
Binary file modified core/tests/swfs/avm1/sound/test.swf
Binary file not shown.

0 comments on commit c921f70

Please sign in to comment.