(value: number)
| 249 | } |
| 250 | |
| 251 | public setPan(value: number): Sound { |
| 252 | this._pan = value; |
| 253 | if (this._loaded) { |
| 254 | if (IsWindows) { |
| 255 | throw new Error("#setPan not supported on windows"); |
| 256 | } else if (IsAndroid) { |
| 257 | this.setAndroidVolumes(); |
| 258 | } else { |
| 259 | RNSound.setPan(this._key, value); |
| 260 | } |
| 261 | } |
| 262 | return this; |
| 263 | } |
| 264 | |
| 265 | public getSystemVolume(callback: (volume: number) => void): Sound { |
| 266 | if (!IsWindows) { |
nothing calls this directly
no test coverage detected