Fixed buffer size and added mixer routine (not working)