commit 6fb83b0f1a73c83454d8583d9bede6c0cf5e7dd7
parent 894cde591b3a1b6729a5384b9b70475198023772
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Thu, 28 Oct 2021 11:53:02 +0800
nativeaudio: [macos,linux] add lifecycle stubs
Make sure we actually compile on these platforms!
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/audio_linux.go b/audio_linux.go
@@ -16,3 +16,11 @@ func load(path string) ([]byte, Format, error) {
func decode(by []byte) ([]byte, Format, error) {
return FFmpegDecode(by)
}
+
+func start() error {
+ return nil
+}
+
+func end() error {
+ return nil
+}
diff --git a/audio_macos.go b/audio_macos.go
@@ -16,3 +16,11 @@ func load(path string) ([]byte, Format, error) {
func decode(by []byte) ([]byte, Format, error) {
return FFmpegDecode(by)
}
+
+func start() error {
+ return nil
+}
+
+func end() error {
+ return nil
+}