A module that has the ability to play audio clips.
Must have a serialized field channels (int) which describes the amount of channels available to be played on. (e.g if channels = 3, there are 3 audio sources to play audio clip to)
Must have a function Play2D(int channel, AudioClip clip, float volume, float pitch, bool loop) which is the primary function for playing 2D sound.
Must have a function Play3D(int channel, Vector3 position, AudioClip clip, float volume, float pitch, bool loop) (must also have the same overloads as Play2D see above) -- primary function to play spatialized audio.
Must have a function GetNextChannel() which returns an index of an audio channel that has no audio clip playing back.
Must have a function Stop(int channel) which stops a specific audio channel from playing back.
Must have a function IsPlaying(int channel, out bool loop) which tells if specified channel is playing an audio clip. Must return loop parameter which tells whether the playback is looping.
Must also have an overload IsPlaying(int channel) which doesn't need the loop out parameter.
A module that has the ability to play audio clips.
Must have a serialized field
channels
(int) which describes the amount of channels available to be played on. (e.g if channels = 3, there are 3 audio sources to play audio clip to)Must have a function
Play2D(int channel, AudioClip clip, float volume, float pitch, bool loop)
which is the primary function for playing 2D sound.Must also have overloads for
Play2D
Play2D(int channel, AudioClip clip, float volume, bool loop)
Play2D(int channel, AudioClip clip, bool loop)
Play2D(int channel, AudioClip clip)
Must have a function
Play3D(int channel, Vector3 position, AudioClip clip, float volume, float pitch, bool loop)
(must also have the same overloads asPlay2D
see above) -- primary function to play spatialized audio.Must have a function
GetNextChannel()
which returns an index of an audio channel that has no audio clip playing back.Must have a function
Stop(int channel)
which stops a specific audio channel from playing back.Must have a function
IsPlaying(int channel, out bool loop)
which tells if specified channel is playing an audio clip. Must returnloop
parameter which tells whether the playback is looping.Must also have an overload
IsPlaying(int channel)
which doesn't need the loop out parameter.