From 7357255b5847094d4c40a7fc985b9204b33a95da Mon Sep 17 00:00:00 2001 From: faiface Date: Sun, 23 Jul 2017 18:14:18 +0200 Subject: [PATCH] minor change --- compositors.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compositors.go b/compositors.go index 8242ecb..0793a0e 100644 --- a/compositors.go +++ b/compositors.go @@ -1,13 +1,13 @@ package beep -// Take returns a Streamer which streams at most n samples from s. +// Take returns a Streamer which streams at most num samples from s. // // The returned Streamer propagates s's errors throught Err. -func Take(n int, s Streamer) Streamer { +func Take(num int, s Streamer) Streamer { return &take{ s: s, currSample: 0, - numSamples: n, + numSamples: num, } }