Fix some bugs. Tetris is working.
make cpu thread stall when audio ring buffer is full