aboutsummaryrefslogtreecommitdiff
path: root/img/facade-audio.puml
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-05 15:00:41 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-05 15:00:41 +0200
commit523793d0fa64acbb9a04403a5c6054941a5296d0 (patch)
tree3486453b7e5674ee4b379d272761d4e902a11aa9 /img/facade-audio.puml
parent335263ef72338ae7d976b1eb8972e5ef10a0203b (diff)
cleanup + sync design with crepe `loek/audio` source branch
Diffstat (limited to 'img/facade-audio.puml')
-rw-r--r--img/facade-audio.puml23
1 files changed, 10 insertions, 13 deletions
diff --git a/img/facade-audio.puml b/img/facade-audio.puml
index 6749915..60af60f 100644
--- a/img/facade-audio.puml
+++ b/img/facade-audio.puml
@@ -2,14 +2,11 @@
!include theme.ipuml
skinparam Linetype ortho
-
package crepe {
- package api {
- class Resource <<irrelevant>>
- }
+ class Asset <<irrelevant>>
class Sound {
- +Sound(resource)
+ +Sound(asset)
--
+pause()
+play()
@@ -20,7 +17,7 @@ package crepe {
-sample : SoLoud::Wav
-handle : SoLoud::handle
--
- -load(resource)
+ -load(asset)
}
class SoundContext <<Singleton>> {
@@ -31,6 +28,11 @@ package crepe {
--
-engine : SoLoud::Soloud
}
+
+ Sound .> SoundContext
+ SoundContext .> Sound
+
+ Sound .left> Asset
}
package SoLoud {
@@ -38,15 +40,10 @@ package SoLoud {
class Wav <<irrelevant>>
}
-' layout
-crepe -[hidden]down- SoLoud
-
crepe.Sound --> SoLoud.Wav
crepe.SoundContext --> SoLoud.Soloud
-crepe.Sound .> crepe.SoundContext
-crepe.SoundContext .> crepe.Sound
-
-crepe.Sound .> crepe.api.Resource
+' LAYOUT
+crepe -[hidden]down- SoLoud
@enduml