Fix sound buffer iterations.

Fixed an assertion in a strange place and make DeleteAll() actually
delete all buffers.