mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/cbackend: remove CloseAudio
This commit is contained in:
parent
aca290caa9
commit
2826555044
@ -54,7 +54,6 @@ package cbackend
|
|||||||
// // Audio
|
// // Audio
|
||||||
// typedef void (*OnReadCallback)(float* buf, size_t length);
|
// typedef void (*OnReadCallback)(float* buf, size_t length);
|
||||||
// void EbitenOpenAudio(int sample_rate, int channel_num, OnReadCallback on_read_callback);
|
// void EbitenOpenAudio(int sample_rate, int channel_num, OnReadCallback on_read_callback);
|
||||||
// void EbitenCloseAudio();
|
|
||||||
//
|
//
|
||||||
// void EbitenAudioOnReadCallback(float* buf, size_t length);
|
// void EbitenAudioOnReadCallback(float* buf, size_t length);
|
||||||
// static void EbitenOpenAudioProxy(int sample_rate, int channel_num) {
|
// static void EbitenOpenAudioProxy(int sample_rate, int channel_num) {
|
||||||
@ -170,10 +169,6 @@ func OpenAudio(sampleRate, channelCount int, onRead func(buf []float32)) {
|
|||||||
onReadCallback = onRead
|
onReadCallback = onRead
|
||||||
}
|
}
|
||||||
|
|
||||||
func CloseAudio() {
|
|
||||||
C.EbitenCloseAudio()
|
|
||||||
}
|
|
||||||
|
|
||||||
//export EbitenAudioOnReadCallback
|
//export EbitenAudioOnReadCallback
|
||||||
func EbitenAudioOnReadCallback(buf *C.float, length C.size_t) {
|
func EbitenAudioOnReadCallback(buf *C.float, length C.size_t) {
|
||||||
var s []float32
|
var s []float32
|
||||||
|
Loading…
Reference in New Issue
Block a user