Updated resources and a bug in a circular buffer.
refactoring + fixed bug with sound replaying.