SetSourceiv should never get AL_SAMPLE_OFFSET_LATENCY_SOFT
authorChris Robinson <chris.kcat@gmail.com>
Thu, 6 Dec 2012 17:03:48 +0000 (6 09:03 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Thu, 6 Dec 2012 17:03:48 +0000 (6 09:03 -0800)
OpenAL32/alSource.c

index bd2e6f6..480e77f 100644 (file)
@@ -662,7 +662,6 @@ static ALenum SetSourceiv(ALsource *Source, ALCcontext *Context, SrcIntProp prop
 
         case siSampleRWOffsetsSOFT:
         case siByteRWOffsetsSOFT:
-        case siSampleOffsetLatencySOFT:
             /* Query only */
             RETERR(AL_INVALID_OPERATION);
 
@@ -775,6 +774,10 @@ static ALenum SetSourceiv(ALsource *Source, ALCcontext *Context, SrcIntProp prop
             fvals[1] = (ALfloat)values[1];
             fvals[2] = (ALfloat)values[2];
             return SetSourcefv(Source, Context, (int)prop, fvals);
+
+        case siSampleOffsetLatencySOFT:
+            /* i64 only */
+            break;
     }
 
     ERR("Unexpected property: 0x%04x\n", prop);