aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--design.tex4
-rw-r--r--img/facade-audio.puml36
2 files changed, 40 insertions, 0 deletions
diff --git a/design.tex b/design.tex
index c5bd017..dcde483 100644
--- a/design.tex
+++ b/design.tex
@@ -38,6 +38,10 @@ workflows.
\subsection{Audio}
+\subsubsection{Fa\c{c}ade}
+
+\includepumldiag{img/facade-audio.puml}
+
\subsection{Input}
\subsection{Physics}
diff --git a/img/facade-audio.puml b/img/facade-audio.puml
new file mode 100644
index 0000000..f760652
--- /dev/null
+++ b/img/facade-audio.puml
@@ -0,0 +1,36 @@
+@startuml
+!include theme.ipuml
+skinparam Linetype ortho
+
+
+package crepe {
+ class Sound {
+ +Sound(crepe::api::Resource)
+
+ +pause()
+ +play()
+ +rewind()
+ +set_volume(float)
+ +set_looping(bool)
+
+ -_handle : SoLoud::handle
+ -_paused : bool
+ }
+
+ class SoundSystem {
+
+ }
+}
+
+package SoLoud {
+ class Soloud
+ class Wav
+}
+
+' layout
+crepe -[hidden]down- SoLoud
+
+crepe.Sound ..> SoLoud.Wav
+crepe.SoundSystem ..> SoLoud.Soloud
+
+@enduml