diff --git a/daemon/src/audio/alsa/alsalayer.cpp b/daemon/src/audio/alsa/alsalayer.cpp
index 164959e9c350cb2aa7c4c0eb4c2089ea80ccad19..fb56f5f98075c6c59a9f002079912717a8e05afa 100644
--- a/daemon/src/audio/alsa/alsalayer.cpp
+++ b/daemon/src/audio/alsa/alsalayer.cpp
@@ -707,7 +707,7 @@ void AlsaLayer::capture()
 
     // TODO: handle ALSA multichannel capture
     const int toGetBytes = in.samples() * sizeof(SFLAudioSample);
-    SFLAudioSample * const in_ptr = &(*in.getChannel(0)->begin());
+    SFLAudioSample * const in_ptr = in.getChannel(0)->data();
 
     if (read(in_ptr, toGetBytes) != toGetBytes) {
         ERROR("ALSA MIC : Couldn't read!");