INNER CODE UNIT · C++

sharedStream

google/oboe · src/aaudio/AudioStreamAAudio.cpp:95

            auto sharedStream = stream->lockWeakThis();

            // If wrapped by FilterAudioStream, the parent must remain alive because
            // callbacks are routed through it.
            std::shared_ptr<AudioStream> sharedParentStream;
            if (sharedStream && sharedStream->hasParentStream()) {
                sharedParentStream = sharedStream->getParentStream()->lockWeakThis();
            }
            return {true, sharedStream, sharedParentStream};
        }
        return {false, nullptr, nullptr};
    }

private:
    // Private constructor to prevent direct instantiation
    AAudioStreamCollection() = default;

    std::mutex mLock;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…