summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/scripts/audio
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-31 09:06:15 +0800
committerchai <chaifix@163.com>2019-01-31 09:06:15 +0800
commitc581dfbf1e849f393861d15e82aa6446c0c1c310 (patch)
tree2df779ba98acdd04a4b52f6bff0de143dfba4600 /Source/Asura.Framework/scripts/audio
parentfc1713e9df3ae8db6e612610023e7bd5f6b6f5fe (diff)
*misc
Diffstat (limited to 'Source/Asura.Framework/scripts/audio')
-rw-r--r--Source/Asura.Framework/scripts/audio/sound.lua9
-rw-r--r--Source/Asura.Framework/scripts/audio/source.lua22
2 files changed, 31 insertions, 0 deletions
diff --git a/Source/Asura.Framework/scripts/audio/sound.lua b/Source/Asura.Framework/scripts/audio/sound.lua
new file mode 100644
index 0000000..71def66
--- /dev/null
+++ b/Source/Asura.Framework/scripts/audio/sound.lua
@@ -0,0 +1,9 @@
+AsuraEngine.Sound = AsuraEngine.Asset.Sub("Sound")
+
+local Sound = AsuraEngine.Sound
+
+function Sound.Ctor(self)
+
+end
+
+return Sound \ No newline at end of file
diff --git a/Source/Asura.Framework/scripts/audio/source.lua b/Source/Asura.Framework/scripts/audio/source.lua
new file mode 100644
index 0000000..ccbc946
--- /dev/null
+++ b/Source/Asura.Framework/scripts/audio/source.lua
@@ -0,0 +1,22 @@
+-- Audio Source
+AsuraEngine.Source = AsuraEngine.Component.Sub("SoundPlayer")
+
+local Source = AsuraEngine.Source
+
+function Source.Ctor(self)
+ self.mSound = nil
+end
+
+function Source.SetSound(sound)
+ self.mSound = sound
+end
+
+function Source.GetSource()
+ return self.mSound
+end
+
+function Source.OnUpdate(dt)
+
+end
+
+return Source \ No newline at end of file