This commit is contained in:
Charlie Birks 2014-01-28 11:41:10 +00:00
Родитель 894165f667
Коммит 96bd7bff27
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -95,9 +95,21 @@ int main() {
alBufferData(buffers[0], format, &buffer[offset], size - offset, frequency);
ALint val;
alGetBufferi(buffers[0], AL_FREQUENCY, &val);
assert(val == frequency);
alGetBufferi(buffers[0], AL_SIZE, &val);
assert(val == size - offset);
alGetBufferi(buffers[0], AL_BITS, &val);
assert(val == bits);
alGetBufferi(buffers[0], AL_CHANNELS, &val);
assert(val == channels);
ALuint sources[1];
alGenSources(1, sources);
assert(alIsSource(sources[0]));
alSourcei(sources[0], AL_BUFFER, buffers[0]);
ALint state;