Ejemplo n.º 1
0
        public static Version BASS_Encode_OPUS_GetVersion(int fieldcount)
        {
            if (fieldcount < 1)
            {
                fieldcount = 1;
            }
            if (fieldcount > 4)
            {
                fieldcount = 4;
            }
            int     num    = BassEnc_Opus.BASS_Encode_OPUS_GetVersion();
            Version result = new Version(2, 4);

            switch (fieldcount)
            {
            case 1:
                result = new Version(num >> 24 & 255, 0);
                break;

            case 2:
                result = new Version(num >> 24 & 255, num >> 16 & 255);
                break;

            case 3:
                result = new Version(num >> 24 & 255, num >> 16 & 255, num >> 8 & 255);
                break;

            case 4:
                result = new Version(num >> 24 & 255, num >> 16 & 255, num >> 8 & 255, num & 255);
                break;
            }
            return(result);
        }
Ejemplo n.º 2
0
 public static int BASS_Encode_OPUS_StartFile(int handle, string options, BASSEncode flags, string filename)
 {
     flags |= BASSEncode.BASS_UNICODE;
     return(BassEnc_Opus.BASS_Encode_OPUS_StartFileUnicode(handle, options, flags, filename));
 }
Ejemplo n.º 3
0
 public static int BASS_Encode_OPUS_Start(int handle, string options, BASSEncode flags, ENCODERPROC proc, IntPtr user)
 {
     flags |= BASSEncode.BASS_UNICODE;
     return(BassEnc_Opus.BASS_Encode_OPUS_StartUnicode(handle, options, flags, proc, user));
 }