projectEli/Assets/NeoFPS/Core/Audio/ICharacterAudioHandler.cs

19 lines
845 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using UnityEngine;
using NeoFPS.Constants;
namespace NeoFPS
{
public interface ICharacterAudioHandler
{
void PlayClip (AudioClip clip, float volume = 1f);
void PlayClip (AudioClip clip, FpsCharacterAudioSource source, float volume = 1f);
void PlayAudio(FpsCharacterAudio id);
void PlayAudio(FpsCharacterAudio id, FpsCharacterAudioSource source);
void StartLoop (AudioClip clip, FpsCharacterAudioSource source, float volume = 1f, float pitch = 1f);
void StopLoop (FpsCharacterAudioSource source);
float GetLoopPitch (FpsCharacterAudioSource source);
void SetLoopPitch (FpsCharacterAudioSource source, float pitch);
float GetLoopVolume(FpsCharacterAudioSource source);
void SetLoopVolume(FpsCharacterAudioSource source, float volume);
}
}