mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
audio: Bug fix: Compile error and noise on Windows
This commit is contained in:
parent
715b5df7e1
commit
98be54fe60
@ -80,7 +80,7 @@ type Player struct {
|
|||||||
headers []*header
|
headers []*header
|
||||||
}
|
}
|
||||||
|
|
||||||
const bufferSize = 1024
|
const bufferSize = 4096
|
||||||
|
|
||||||
func NewPlayer(sampleRate, channelNum, bytesPerSample int) (*Player, error) {
|
func NewPlayer(sampleRate, channelNum, bytesPerSample int) (*Player, error) {
|
||||||
numBlockAlign := channelNum * bytesPerSample
|
numBlockAlign := channelNum * bytesPerSample
|
||||||
@ -135,6 +135,7 @@ func (p *Player) Proceed(data []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Player) Close() {
|
func (p *Player) Close() error {
|
||||||
// TODO: Implement this
|
// TODO: Implement this
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user