wave: use stdin/stdout if fname is None