aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-17 04:39:15 -0700
committerChris Robinson <[email protected]>2023-09-17 04:39:15 -0700
commit01597b42054fef632ac856ae8e2defa41dfc0307 (patch)
tree2b8d953d9e3802a01f3dc2bfd3177cdbac4bf07e /al
parentc4ce0ec4411f21e0a2f8485588717c59f0b9970c (diff)
Fix source span size
Diffstat (limited to 'al')
-rw-r--r--al/source.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 9289d25c..01a981d3 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3133,7 +3133,7 @@ FORCE_ALIGN void AL_APIENTRY alSourcePlayvDirect(ALCcontext *context, ALsizei n,
std::array<ALsource*,8> source_storage;
al::span<ALsource*> srchandles;
if(static_cast<ALuint>(n) <= source_storage.size()) LIKELY
- srchandles = al::span{source_storage}.subspan(static_cast<ALuint>(n));
+ srchandles = al::span{source_storage}.first(static_cast<ALuint>(n));
else
{
extra_sources.resize(static_cast<ALuint>(n));
@@ -3167,7 +3167,7 @@ FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimevDirectSOFT(ALCcontext *context,
std::array<ALsource*,8> source_storage;
al::span<ALsource*> srchandles;
if(static_cast<ALuint>(n) <= source_storage.size()) LIKELY
- srchandles = al::span{source_storage}.subspan(static_cast<ALuint>(n));
+ srchandles = al::span{source_storage}.first(static_cast<ALuint>(n));
else
{
extra_sources.resize(static_cast<ALuint>(n));
@@ -3203,7 +3203,7 @@ FORCE_ALIGN void AL_APIENTRY alSourcePausevDirect(ALCcontext *context, ALsizei n
std::array<ALsource*,8> source_storage;
al::span<ALsource*> srchandles;
if(static_cast<ALuint>(n) <= source_storage.size()) LIKELY
- srchandles = al::span{source_storage}.subspan(static_cast<ALuint>(n));
+ srchandles = al::span{source_storage}.first(static_cast<ALuint>(n));
else
{
extra_sources.resize(static_cast<ALuint>(n));
@@ -3275,7 +3275,7 @@ FORCE_ALIGN void AL_APIENTRY alSourceStopvDirect(ALCcontext *context, ALsizei n,
std::array<ALsource*,8> source_storage;
al::span<ALsource*> srchandles;
if(static_cast<ALuint>(n) <= source_storage.size()) LIKELY
- srchandles = al::span{source_storage}.subspan(static_cast<ALuint>(n));
+ srchandles = al::span{source_storage}.first(static_cast<ALuint>(n));
else
{
extra_sources.resize(static_cast<ALuint>(n));
@@ -3334,7 +3334,7 @@ FORCE_ALIGN void AL_APIENTRY alSourceRewindvDirect(ALCcontext *context, ALsizei
std::array<ALsource*,8> source_storage;
al::span<ALsource*> srchandles;
if(static_cast<ALuint>(n) <= source_storage.size()) LIKELY
- srchandles = al::span{source_storage}.subspan(static_cast<ALuint>(n));
+ srchandles = al::span{source_storage}.first(static_cast<ALuint>(n));
else
{
extra_sources.resize(static_cast<ALuint>(n));