diff options
author | Chris Robinson <[email protected]> | 2019-07-30 14:13:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-30 14:13:05 -0700 |
commit | ac554de67d5eb353283c3359bbac15fb4ddad7d9 (patch) | |
tree | 6295074258d168f1bbdce36300bfe41a3c5d2b24 /al | |
parent | ea76e003e7f2063687ed662282d388078ecf385b (diff) |
Turn some functions into methods
Diffstat (limited to 'al')
-rw-r--r-- | al/source.cpp | 2 | ||||
-rw-r--r-- | al/state.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/al/source.cpp b/al/source.cpp index 39b635a4..35d3bb84 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -2828,7 +2828,7 @@ START_API_FUNC alloc_count); const size_t newcount{context->mVoices->size() + alloc_count}; - AllocateVoices(context.get(), newcount); + context->allocVoices(newcount); } context->mVoiceCount.fetch_add(need_voices, std::memory_order_relaxed); diff --git a/al/state.cpp b/al/state.cpp index b1885f5c..903ab614 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -775,7 +775,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if(UNLIKELY(!context)) return; - ALCcontext_DeferUpdates(context.get()); + context->deferUpdates(); } END_API_FUNC @@ -785,7 +785,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if(UNLIKELY(!context)) return; - ALCcontext_ProcessUpdates(context.get()); + context->processUpdates(); } END_API_FUNC |