2018-06-01 05:38:24 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-06-26 12:13:40 +08:00
|
|
|
|
namespace SimpleSoundManager.Framework
|
2018-06-01 05:38:24 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface used for common sound functionality;
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface Sound
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles playing a sound.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void play();
|
2018-08-17 02:50:50 +08:00
|
|
|
|
|
|
|
|
|
void play(float volume);
|
2018-06-01 05:38:24 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles pausing a song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void pause();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles stopping a song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void stop();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles restarting a song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void restart();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles getting a clone of the song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Sound clone();
|
2018-08-07 05:01:44 +08:00
|
|
|
|
|
|
|
|
|
string getSoundName();
|
|
|
|
|
|
|
|
|
|
bool isStopped();
|
2018-06-01 05:38:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|