From 2826555044e5d1569f6b5a2fa3f9ec6ee430bbc2 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 8 Aug 2022 12:38:27 +0900 Subject: [PATCH] internal/cbackend: remove CloseAudio --- internal/cbackend/cbackend.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/cbackend/cbackend.go b/internal/cbackend/cbackend.go index 647cf0428..d831136b1 100644 --- a/internal/cbackend/cbackend.go +++ b/internal/cbackend/cbackend.go @@ -54,7 +54,6 @@ package cbackend // // Audio // typedef void (*OnReadCallback)(float* buf, size_t length); // void EbitenOpenAudio(int sample_rate, int channel_num, OnReadCallback on_read_callback); -// void EbitenCloseAudio(); // // void EbitenAudioOnReadCallback(float* buf, size_t length); // static void EbitenOpenAudioProxy(int sample_rate, int channel_num) { @@ -170,10 +169,6 @@ func OpenAudio(sampleRate, channelCount int, onRead func(buf []float32)) { onReadCallback = onRead } -func CloseAudio() { - C.EbitenCloseAudio() -} - //export EbitenAudioOnReadCallback func EbitenAudioOnReadCallback(buf *C.float, length C.size_t) { var s []float32