mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
LibMedia: Move the PulseAudioStream constructor out of line
This commit is contained in:
committed by
Gregory Bertilson
parent
2c73848f78
commit
3e485ba51c
Notes:
github-actions[bot]
2025-11-24 21:10:51 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/3e485ba51c3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6684
@@ -280,6 +280,12 @@ ErrorOr<NonnullRefPtr<PulseAudioStream>> PulseAudioContext::create_stream(Output
|
||||
return stream_wrapper;
|
||||
}
|
||||
|
||||
PulseAudioStream::PulseAudioStream(NonnullRefPtr<PulseAudioContext>&& context, pa_stream* stream)
|
||||
: m_context(context)
|
||||
, m_stream(stream)
|
||||
{
|
||||
}
|
||||
|
||||
PulseAudioStream::~PulseAudioStream()
|
||||
{
|
||||
auto locker = m_context->main_loop_locker();
|
||||
|
||||
@@ -126,11 +126,7 @@ public:
|
||||
private:
|
||||
friend class PulseAudioContext;
|
||||
|
||||
explicit PulseAudioStream(NonnullRefPtr<PulseAudioContext>&& context, pa_stream* stream)
|
||||
: m_context(context)
|
||||
, m_stream(stream)
|
||||
{
|
||||
}
|
||||
explicit PulseAudioStream(NonnullRefPtr<PulseAudioContext>&& context, pa_stream* stream);
|
||||
PulseAudioStream(PulseAudioStream const& other) = delete;
|
||||
|
||||
ErrorOr<void> wait_for_operation(pa_operation*, StringView error_message);
|
||||
|
||||
Reference in New Issue
Block a user