diff options
author | Chris Robinson <[email protected]> | 2013-10-27 14:24:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-27 14:24:55 -0700 |
commit | af8be56f17b5f00838be11d93c42cf0b69ba5af7 (patch) | |
tree | c2c36a37236e646b3d0ed098da26e63c1fc3dc27 /OpenAL32/alSource.c | |
parent | bf465eb2ebf38cc104685c475d8fb682e9db22a0 (diff) |
Use an ALCbackend object to access playback backends
This is the start of a backend redesign. Currently, a wrapper object is used to
avoid having to redo all the backends at once, but they should slowly be
converted to derive from ALCbackend instead. The ALCbackend interface can
change as needed.
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index cae60cc2..e017ff62 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -947,7 +947,7 @@ static ALboolean GetSourcedv(const ALsource *Source, ALCcontext *Context, SrcFlo case AL_SEC_OFFSET_LATENCY_SOFT: LockContext(Context); values[0] = GetSourceSecOffset(Source); - values[1] = (ALdouble)ALCdevice_GetLatency(Context->Device) / + values[1] = (ALdouble)alcGetLatency(Context->Device) / 1000000000.0; UnlockContext(Context); return AL_TRUE; @@ -1133,7 +1133,7 @@ static ALboolean GetSourcei64v(const ALsource *Source, ALCcontext *Context, SrcI case AL_SAMPLE_OFFSET_LATENCY_SOFT: LockContext(Context); values[0] = GetSourceOffset(Source); - values[1] = ALCdevice_GetLatency(Context->Device); + values[1] = alcGetLatency(Context->Device); UnlockContext(Context); return AL_TRUE; |