Fix audio detection bug; Add more debug output