mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-03 17:18:20 -04:00
fix(go/audio/oto): clean up forgotten debug prints
This commit is contained in:
parent
551a7cb6c0
commit
6e141f36c7
@ -18,11 +18,7 @@ func (o *OtoPlayer) Play(floatBuffer []float32) (err error) {
|
||||
return fmt.Errorf("error writing to player: %w", err)
|
||||
} else if _, err := o.player.Write(byteBuffer); err != nil {
|
||||
return fmt.Errorf("error writing to player: %w", err)
|
||||
} else {
|
||||
fmt.Printf("%#v\n", floatBuffer[0:100])
|
||||
fmt.Printf("%#v\n", byteBuffer[0:200])
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -45,8 +41,8 @@ func NewPlayer() (*OtoPlayer, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot create oto context: %w", err)
|
||||
}
|
||||
player := context.NewPlayer()
|
||||
|
||||
player := context.NewPlayer()
|
||||
return &OtoPlayer{
|
||||
context: context,
|
||||
player: player,
|
||||
|
Loading…
x
Reference in New Issue
Block a user