mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-24 02:55:45 +00:00
Unblock sending audio channel, avoid causing stuck (#131)
This commit is contained in:
parent
cda47d5229
commit
7df39def96
1 changed files with 4 additions and 1 deletions
|
|
@ -136,7 +136,10 @@ func audioWrite2(buf unsafe.Pointer, frames C.size_t) C.size_t {
|
|||
// copy because pcm slice refer to buf underlying pointer, and buf pointer is the same in continuos frames
|
||||
copy(p, pcm)
|
||||
|
||||
NAEmulator.audioChannel <- p
|
||||
select {
|
||||
case NAEmulator.audioChannel <- p:
|
||||
default:
|
||||
}
|
||||
|
||||
return frames
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue