aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-12-05 08:29:38 -0800
committerChris Robinson <[email protected]>2012-12-05 08:29:38 -0800
commit3b9b176f144ecae9ffa63e8db3a9dfe04d00853a (patch)
treee77d93f39ce28c43eed6adf86d2166fe694f99b5 /OpenAL32/alSource.c
parent838f0fd71bb448781764510e350bb79732b71d54 (diff)
Print an error if trying to handle a missed source property
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index fe7aa6f3..22686a03 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -235,6 +235,7 @@ static ALenum SetSourcefv(ALsource *Source, ALCcontext *Context, ALenum name, co
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}
@@ -464,6 +465,7 @@ static ALenum SetSourceiv(ALsource *Source, ALCcontext *Context, ALenum name, co
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}
@@ -548,6 +550,7 @@ static ALenum SetSourcei64v(ALsource *Source, ALCcontext *Context, ALenum name,
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}
@@ -692,6 +695,7 @@ static ALenum GetSourcedv(const ALsource *Source, ALCcontext *Context, ALenum na
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}
@@ -809,6 +813,7 @@ static ALenum GetSourceiv(const ALsource *Source, ALCcontext *Context, ALenum na
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}
@@ -880,6 +885,7 @@ static ALenum GetSourcei64v(const ALsource *Source, ALCcontext *Context, ALenum
break;
default:
+ ERR("Unexpected param: 0x%04x\n", name);
RETERR(AL_INVALID_ENUM);
}