-
Notifications
You must be signed in to change notification settings - Fork 687
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
CATROID-1424 'Start sound PULLDOWN at XX seconds' brick #4566
Conversation
43c4286
to
cc99719
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few minor remarks: Please have a look at the BricksHelpUrlTest as well as the BrickCategoryTest as they are now failing because of the new brick. Also please change the copyright in all edited files to 2022.
lateinit var offset: Formula | ||
var sound: SoundInfo? = null | ||
var scope: Scope? = null | ||
var soundManagerMocked: SoundManager? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Variable seems to never be used
|
||
@Override | ||
public void addActionToSequence(Sprite sprite, ScriptSequenceAction sequence) { | ||
// Check sound file input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment please
Also please change the title of the PR to: CATROID-1424 'Start sound PULLDOWN at XX seconds' brick |
4c67ba7
to
38bcef9
Compare
Created layout for brick. Added fucntionality to brick. Added JUnit tests. Fixed Warnings. Implemented requested changes from pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Upps, my mistake! The Catrobat Language Version should have been increased with this PR. Added via #4597. |
Catroid-1424
Created the 'Start sound PULLDOWN at XX seconds' brick, which allows you to select a soundfile and play it with a selected offset (in seconds). For instance, if a soundfile is 2 secoonds long and the offset is 0.5 seconds the soundfile will play from 0.5 seconds to the 2 seconds marker.
Added according JUnit tests for the brick.
Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.