Commit ed3eaeb2 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

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

parent 57093b46
......@@ -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!");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment