MCPcopy Create free account
hub / github.com/melonjs/melonJS / pauseTrack

Function pauseTrack

packages/melonjs/src/audio/audio.ts:161–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 * @category Audio
160 */
161export function pauseTrack(): void {
162 if (state.currentTrackId !== null) {
163 state.tracks[state.currentTrackId]?.pause();
164 }
165}
166
167/**
168 * Resume the previously paused audio track.

Callers 2

stopFunction · 0.90
pauseFunction · 0.90

Calls 1

pauseMethod · 0.45

Tested by

no test coverage detected