# GetSoundInstancePlaying

## Description

Returns 1 if the given instance is still playing or looping, 0 if it has stopped. The instance ID is the value returned from PlaySound when you initiated the playing of the sound. Once this command returns 0 the instance has been deleted and can no longer be referenced, any attempt to modify it will be ignored. You will need to create a new instance by using PlaySound again.

## Definition

integer GetSoundInstancePlaying( iID )

int agk::GetSoundInstancePlaying( UINT iID )

## Parameters

- iID - The ID of the instance to check