18 lines
411 B
C#
18 lines
411 B
C#
|
/* Copyright (C) 2014 DaikonForge */
|
|||
|
|
|||
|
namespace DaikonForge.VoIP
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Interface for classes which can play received audio
|
|||
|
/// </summary>
|
|||
|
public interface IAudioPlayer
|
|||
|
{
|
|||
|
bool PlayingSound { get; }
|
|||
|
void SetSampleRate(int sampleRate, int seconds);
|
|||
|
void BufferAudio( BigArray<float> audioData );
|
|||
|
|
|||
|
void Play(string path);
|
|||
|
|
|||
|
UnityEngine.AudioClip GetAudioClip();
|
|||
|
}
|
|||
|
}
|