Skip to content
Snippets Groups Projects
Commit 6a34c44b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix audio multi packet send bug

parent 20b6a4c4
No related branches found
No related tags found
No related merge requests found
...@@ -236,7 +236,7 @@ void Receiver::_processAudio(const StreamPacket &spkt, const Packet &pkt) { ...@@ -236,7 +236,7 @@ void Receiver::_processAudio(const StreamPacket &spkt, const Packet &pkt) {
auto &build = builder(spkt.streamID); auto &build = builder(spkt.streamID);
auto fs = build.get(spkt.timestamp, spkt.frame_number+pkt.frame_count-1); auto fs = build.get(spkt.timestamp, spkt.frame_number+pkt.frame_count-1);
auto &frame = fs->frames[0]; auto &frame = fs->frames[spkt.frame_number];
auto &audiolist = frame.createChange<std::list<ftl::audio::Audio>>(spkt.channel, build.changeType(), pkt); auto &audiolist = frame.createChange<std::list<ftl::audio::Audio>>(spkt.channel, build.changeType(), pkt);
auto &audio = audiolist.emplace_back(); auto &audio = audiolist.emplace_back();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment