add live select pannel

This commit is contained in:
CroakFang
2023-01-20 07:13:54 +08:00
parent 3b18268252
commit a4dc2516e3
1543 changed files with 107369 additions and 9227 deletions
@@ -0,0 +1,22 @@
using System.IO;
namespace DereTore.Exchange.Audio.HCA {
public interface IWaveWriter {
SamplingMode SamplingMode { get; }
uint BytesPerSample { get; }
/// <summary>
/// Decode an audio sample to buffer.
/// </summary>
/// <param name="f">Audio sample value.</param>
/// <param name="buffer">Decode buffer for output.</param>
/// <param name="offset">Offset of the desired starting byte in buffer.</param>
/// <returns>Bytes written.</returns>
uint DecodeToBuffer(float f, byte[] buffer, uint offset);
uint DecodeToStream(float f, Stream stream);
}
}