buffer.rewind();
AL10.alDistanceModel(AL10.AL_INVERSE_DISTANCE_CLAMPED);
// Initialize sound pools
pools.put("sfx", new OpenALSoundPool(30)); // effects pool
pools.put("music", new OpenALStreamingSoundPool(2)); // music pool
pools.get("sfx").setVolume(config.getSoundVolume());
pools.get("music").setVolume(config.getMusicVolume());
}