mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-09 09:24:43 +01:00
parent
a93897d9d2
commit
5474a52392
@ -22,31 +22,6 @@ import (
|
|||||||
"github.com/hajimehoshi/ebiten/v2/audio/internal/readerdriver"
|
"github.com/hajimehoshi/ebiten/v2/audio/internal/readerdriver"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
|
||||||
dummyWriterContext struct{}
|
|
||||||
dummyWriterPlayer struct{}
|
|
||||||
)
|
|
||||||
|
|
||||||
func (c *dummyWriterContext) NewPlayer() io.WriteCloser {
|
|
||||||
return &dummyWriterPlayer{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *dummyWriterContext) Close() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *dummyWriterPlayer) Write(b []byte) (int, error) {
|
|
||||||
return len(b), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *dummyWriterPlayer) Close() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
writerDriverForTesting = &dummyWriterContext{}
|
|
||||||
}
|
|
||||||
|
|
||||||
type (
|
type (
|
||||||
dummyReaderContext struct{}
|
dummyReaderContext struct{}
|
||||||
dummyReaderPlayer struct {
|
dummyReaderPlayer struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user