rename CreateSubBuffer to Slice

pull/50/head
cosmonaut 2023-08-03 12:51:56 -07:00
parent f81133a5a3
commit b5e79b0e0b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace MoonWorks.Audio
/// <param name="offset">Offset in bytes from the top of the original buffer.</param> /// <param name="offset">Offset in bytes from the top of the original buffer.</param>
/// <param name="length">Length in bytes of the new buffer.</param> /// <param name="length">Length in bytes of the new buffer.</param>
/// <returns></returns> /// <returns></returns>
public AudioBuffer CreateSubBuffer(int offset, uint length) public AudioBuffer Slice(int offset, uint length)
{ {
return new AudioBuffer(Device, Format, BufferDataPtr + offset, length, false); return new AudioBuffer(Device, Format, BufferDataPtr + offset, length, false);
} }