File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,9 +264,6 @@ class EngineMixer : public QObject, public AudioSource {
264264 // non-owning. lifetime bound to EffectsManager
265265 EngineEffectsManager* m_pEngineEffectsManager;
266266
267- // List of channels added to the engine.
268- QVarLengthArray<std::unique_ptr<ChannelInfo>, kPreallocatedChannels > m_channels;
269-
270267 // The previous gain of each channel for each mixing output (main,
271268 // headphone, talkover).
272269 QVarLengthArray<GainCache, kPreallocatedChannels > m_channelMainGainCache;
@@ -345,4 +342,8 @@ class EngineMixer : public QObject, public AudioSource {
345342 // TODO (Swiftb0y): remove volatile (probably supposed to be std::atomic instead).
346343 volatile bool m_bBusOutputConnected[3 ];
347344 bool m_bExternalRecordBroadcastInputConnected;
345+
346+ // Owning list of channels added to the engine.
347+ // Keep at last position, it needs to be destroyed first
348+ QVarLengthArray<std::unique_ptr<ChannelInfo>, kPreallocatedChannels > m_channels;
348349};
You can’t perform that action at this time.
0 commit comments