internal/cbackend: remove CloseAudio

This commit is contained in:
Hajime Hoshi 2022-08-08 12:38:27 +09:00
parent aca290caa9
commit 2826555044

View File

@ -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