GetVolume gets the Player's volume
()
| 277 | |
| 278 | // GetVolume gets the Player's volume |
| 279 | func (p *Player) GetVolume() float64 { |
| 280 | v := 0.0 |
| 281 | p.sync(func() { |
| 282 | v = p.volume |
| 283 | }) |
| 284 | return v |
| 285 | } |
| 286 | |
| 287 | // SetVolume sets the Player's volume |
| 288 | // volume can only be set from 0 to 1 |