| 117 | } |
| 118 | |
| 119 | bool source::unqueueallbuffers() |
| 120 | { |
| 121 | alclearerr(); |
| 122 | ALint queued; |
| 123 | alGetSourcei(id, AL_BUFFERS_QUEUED, &queued); |
| 124 | ALERR; |
| 125 | loopi(queued) |
| 126 | { |
| 127 | ALuint buffer; |
| 128 | alSourceUnqueueBuffers(id, 1, &buffer); |
| 129 | } |
| 130 | return !ALERR; |
| 131 | } |
| 132 | |
| 133 | bool source::gain(float g) |
| 134 | { |