aboutsummaryrefslogtreecommitdiff
path: root/img/facade-audio.puml
diff options
context:
space:
mode:
Diffstat (limited to 'img/facade-audio.puml')
-rw-r--r--img/facade-audio.puml49
1 files changed, 49 insertions, 0 deletions
diff --git a/img/facade-audio.puml b/img/facade-audio.puml
new file mode 100644
index 0000000..60af60f
--- /dev/null
+++ b/img/facade-audio.puml
@@ -0,0 +1,49 @@
+@startuml
+!include theme.ipuml
+skinparam Linetype ortho
+
+package crepe {
+ class Asset <<irrelevant>>
+
+ class Sound {
+ +Sound(asset)
+ --
+ +pause()
+ +play()
+ +rewind()
+ -volume : float <<+set>> <<+get>>
+ -looping : bool <<+set>> <<+get>>
+ --
+ -sample : SoLoud::Wav
+ -handle : SoLoud::handle
+ --
+ -load(asset)
+ }
+
+ class SoundContext <<Singleton>> {
+ -instance() : SoundContext& <<static>>
+ --
+ -SoundContext()
+ -~SoundContext()
+ --
+ -engine : SoLoud::Soloud
+ }
+
+ Sound .> SoundContext
+ SoundContext .> Sound
+
+ Sound .left> Asset
+}
+
+package SoLoud {
+ class Soloud <<irrelevant>>
+ class Wav <<irrelevant>>
+}
+
+crepe.Sound --> SoLoud.Wav
+crepe.SoundContext --> SoLoud.Soloud
+
+' LAYOUT
+crepe -[hidden]down- SoLoud
+
+@enduml