private void generate_mode() {
        
        if(mode.equals("joint_stereo"))
            headerstring |= 0x40;
        
        if(mode.equals("dual_channel"))
            headerstring |= 0x80;
        
        if(mode.equals("single_channel"))
            headerstring |= 0xc0;
    }