diff --git a/transforms/resample.go b/transforms/resample.go
index <HASH>..<HASH> 100644
--- a/transforms/resample.go
+++ b/transforms/resample.go
@@ -13,6 +13,9 @@ func Resample(buf *audio.PCMBuffer, fs float64) error {
 	if buf == nil || buf.Format == nil {
 		return audio.ErrInvalidBuffer
 	}
+	if buf.Format.SampleRate == int(fs) {
+		return nil
+	}
 	buf.SwitchPrimaryType(audio.Float)
 
 	// downsample
transforms: noop resampling if the target fs is similar to current