Skip to content
Snippets Groups Projects
Commit ed3eaeb2 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28334: audiocodec: use vector::data()

parent 57093b46
Branches
Tags
No related merge requests found
...@@ -707,7 +707,7 @@ void AlsaLayer::capture() ...@@ -707,7 +707,7 @@ void AlsaLayer::capture()
// TODO: handle ALSA multichannel capture // TODO: handle ALSA multichannel capture
const int toGetBytes = in.samples() * sizeof(SFLAudioSample); 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) { if (read(in_ptr, toGetBytes) != toGetBytes) {
ERROR("ALSA MIC : Couldn't read!"); ERROR("ALSA MIC : Couldn't read!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment