Skip to content

Commit b8bc129

Browse files
committed
LibMedia: Rename PulseAudioContext::instance() to the()
1 parent c093972 commit b8bc129

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ErrorOr<NonnullRefPtr<PlaybackStream>> PlaybackStreamPulseAudio::create(OutputSt
3737

3838
// Create the control thread and start it.
3939
auto thread = TRY(Threading::Thread::try_create([=, data_request_callback = move(data_request_callback)]() mutable {
40-
auto context = TRY_OR_EXIT_THREAD(PulseAudioContext::instance());
40+
auto context = TRY_OR_EXIT_THREAD(PulseAudioContext::the());
4141
internal_state->set_stream(TRY_OR_EXIT_THREAD(context->create_stream(initial_state, sample_rate, channels, target_latency_ms, [data_request_callback = move(data_request_callback)](PulseAudioStream&, Bytes buffer, size_t sample_count) {
4242
return data_request_callback(buffer, PcmSampleFormat::Float32, sample_count);
4343
})));

Libraries/LibMedia/Audio/PulseAudioWrappers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ WeakPtr<PulseAudioContext> PulseAudioContext::weak_instance()
1818
return the_instance;
1919
}
2020

21-
ErrorOr<NonnullRefPtr<PulseAudioContext>> PulseAudioContext::instance()
21+
ErrorOr<NonnullRefPtr<PulseAudioContext>> PulseAudioContext::the()
2222
{
2323
static Threading::Mutex instantiation_mutex;
2424
// Lock and unlock the mutex to ensure that the mutex is fully unlocked at application

Libraries/LibMedia/Audio/PulseAudioWrappers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MEDIA_API PulseAudioContext
4040
, public Weakable<PulseAudioContext> {
4141
public:
4242
static AK::WeakPtr<PulseAudioContext> weak_instance();
43-
static ErrorOr<NonnullRefPtr<PulseAudioContext>> instance();
43+
static ErrorOr<NonnullRefPtr<PulseAudioContext>> the();
4444

4545
explicit PulseAudioContext(pa_threaded_mainloop*, pa_mainloop_api*, pa_context*);
4646
PulseAudioContext(PulseAudioContext const& other) = delete;

0 commit comments

Comments
 (0)