using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace ZXKFramework
{
public interface ISound
{
///
/// 初始化
///
///
void Init(string dirPath);
///
/// 设置加载的方式
///
///
void SetResType(IRes res);
///
/// 是否静音
///
///
void Mute(bool _isMute);
///
/// 播放BGM
///
void PlayBGM(string bgm, bool loop = true, Action callBack = null);
///
/// 暂停BGM
///
void PauseBGM();
///
/// 取消暂停BGM
///
void UnPauseBGM();
///
/// 停止BGM
///
void StopBGM();
///
/// 播放2D音效
///
void PlaySound(string sound, Action callBack = null);
///
/// 播放3D音效
///
void PlaySound(string sound, GameObject target, Action callBack = null);
///
/// 在世界空间中指定的位置播放3D音效
///
void PlaySound(string sound, Vector3 worldPosition, Transform parent = null, Action callBack = null);
///
/// 播放环境音效
///
void PlayBGS(string bgs, bool loop = true, Action callBack = null);
///
/// 暂停环境音效
///
void PauseBGS();
///
/// 取消暂停环境音效
///
void UnPauseBGS();
///
/// 停止BGS
///
void StopBGS();
///
/// 播放提示音效
///
///
void PlayMS(string ms, Action callBack = null);
///
/// 播放角色语音
///
void PlayVoice(string voice, Action callBack = null);
///
/// 停止角色语音
///
void StopVoice();
}
}