From ed3eaeb208c3c473f4f5091d1bce2f8f41ab1cfa Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Mon, 12 Aug 2013 14:07:23 -0400 Subject: [PATCH] * #28334: audiocodec: use vector::data() --- daemon/src/audio/alsa/alsalayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/audio/alsa/alsalayer.cpp b/daemon/src/audio/alsa/alsalayer.cpp index 164959e9c3..fb56f5f980 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!"); -- GitLab