diff options
author | Chris Robinson <[email protected]> | 2017-03-06 22:58:04 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-07 00:19:40 -0800 |
commit | 190120dfd7ae53e284944fa4971efcf999cc321e (patch) | |
tree | c081ca66b3680270c31a667eaa29c1eef3cb4c0b /OpenAL32/Include | |
parent | bc0096365e66b8114a54bb533e818deb794c7601 (diff) |
Store the channel count and sample size in the voice
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index c33d6d1a..2525f107 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -94,6 +94,13 @@ typedef struct ALvoice { ATOMIC(ALuint) position; ATOMIC(ALuint) position_fraction; + /** + * Number of channels and bytes-per-sample for the attached source's + * buffer(s). + */ + ALsizei NumChannels; + ALsizei SampleSize; + /** Current target parameters used for mixing. */ ALint Step; @@ -197,10 +204,6 @@ typedef struct ALsource { ATOMIC(ALboolean) looping; - /** Current buffer sample info. */ - ALsizei NumChannels; - ALsizei SampleSize; - ALenum NeedsUpdate; ATOMIC(struct ALsourceProps*) Update; |