MCPcopy Index your code
hub / github.com/zmxv/react-native-sound / setPan

Method setPan

src/index.ts:251–263  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

setAndroidVolumesMethod · 0.95

Tested by

no test coverage detected