mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
audio: Add comments
This commit is contained in:
parent
df2604c221
commit
acc4ef4e11
@ -266,6 +266,8 @@ type proceededValues struct {
|
||||
//
|
||||
// NewPlayer tries to call Seek of src to get the current position.
|
||||
// NewPlayer returns error when the Seek returns error.
|
||||
//
|
||||
// NewPlayer takes the ownership of src. Player's Close calls src's Close.
|
||||
func NewPlayer(context *Context, src io.ReadCloser) (*Player, error) {
|
||||
if context.mux.hasSource(src) {
|
||||
return nil, errors.New("audio: src cannot be shared with another Player")
|
||||
|
Loading…
Reference in New Issue
Block a user