From b5e79b0e0bc9f747a9b933f4a60e4435c66401b2 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 3 Aug 2023 12:51:56 -0700 Subject: [PATCH] rename CreateSubBuffer to Slice --- src/Audio/AudioBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audio/AudioBuffer.cs b/src/Audio/AudioBuffer.cs index bfdeda7..fdfb5e5 100644 --- a/src/Audio/AudioBuffer.cs +++ b/src/Audio/AudioBuffer.cs @@ -35,7 +35,7 @@ namespace MoonWorks.Audio /// Offset in bytes from the top of the original buffer. /// Length in bytes of the new buffer. /// - public AudioBuffer CreateSubBuffer(int offset, uint length) + public AudioBuffer Slice(int offset, uint length) { return new AudioBuffer(Device, Format, BufferDataPtr + offset, length, false); }