Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
the hurlers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Herman Andersen Dyrkorn
the hurlers
Commits
0c4118af
Commit
0c4118af
authored
4 years ago
by
Herman Andersen Dyrkorn
Browse files
Options
Downloads
Patches
Plain Diff
sound is working when hurling all thoughts
parent
9b0670db
No related branches found
Branches containing commit
No related tags found
1 merge request
!25
Resolve "soundeffects"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sample/Controller.java
+3
-0
3 additions, 0 deletions
src/sample/Controller.java
src/sample/SoundController.java
+1
-1
1 addition, 1 deletion
src/sample/SoundController.java
with
4 additions
and
1 deletion
src/sample/Controller.java
+
3
−
0
View file @
0c4118af
...
...
@@ -31,6 +31,9 @@ public class Controller {
public
void
handleHurlAll
()
{
//delete all thoughts and display the list
listView
.
getItems
().
clear
();
SoundController
sound
=
SoundController
.
getInstance
();
sound
.
playSound
();
}
public
void
handleHurlSelected
()
{
...
...
This diff is collapsed.
Click to expand it.
src/sample/SoundController.java
+
1
−
1
View file @
0c4118af
...
...
@@ -12,7 +12,7 @@ public class SoundController{
//Creating Singleton
private
static
final
SoundController
INSTANCE
=
new
SoundController
();
private
SoundController
(){
addSound
(
"woosh.mp3"
);
addSound
(
"
./src/sample/
woosh.mp3"
);
}
public
static
SoundController
getInstance
(){
return
INSTANCE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment