Esempio n. 1
0
        public static int BASS_MPC_StreamCreateURL(string url, int offset, BASSFlag flags, DOWNLOADPROC proc, IntPtr user)
        {
            flags |= BASSFlag.BASS_UNICODE;
            int num = BassMpc.BASS_MPC_StreamCreateURLUnicode(url, offset, flags, proc, user);

            if (num == 0)
            {
                flags &= (BASSFlag.BASS_SAMPLE_8BITS | BASSFlag.BASS_SAMPLE_MONO | BASSFlag.BASS_SAMPLE_LOOP | BASSFlag.BASS_SAMPLE_3D | BASSFlag.BASS_SAMPLE_SOFTWARE | BASSFlag.BASS_SAMPLE_MUTEMAX | BASSFlag.BASS_SAMPLE_VAM | BASSFlag.BASS_SAMPLE_FX | BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_RECORD_PAUSE | BASSFlag.BASS_RECORD_ECHOCANCEL | BASSFlag.BASS_RECORD_AGC | BASSFlag.BASS_STREAM_PRESCAN | BASSFlag.BASS_STREAM_AUTOFREE | BASSFlag.BASS_STREAM_RESTRATE | BASSFlag.BASS_STREAM_BLOCK | BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_STREAM_STATUS | BASSFlag.BASS_SPEAKER_FRONT | BASSFlag.BASS_SPEAKER_REAR | BASSFlag.BASS_SPEAKER_REAR2 | BASSFlag.BASS_SPEAKER_LEFT | BASSFlag.BASS_SPEAKER_RIGHT | BASSFlag.BASS_SPEAKER_PAIR8 | BASSFlag.BASS_ASYNCFILE | BASSFlag.BASS_SAMPLE_OVER_VOL | BASSFlag.BASS_WV_STEREO | BASSFlag.BASS_AC3_DOWNMIX_2 | BASSFlag.BASS_AC3_DOWNMIX_4 | BASSFlag.BASS_AC3_DYNAMIC_RANGE | BASSFlag.BASS_AAC_FRAME960);
                num    = BassMpc.BASS_MPC_StreamCreateURLAscii(url, offset, flags, proc, user);
            }
            return(num);
        }
Esempio n. 2
0
 public static int BASS_MPC_StreamCreateFile(IntPtr memory, long offset, long length, BASSFlag flags)
 {
     return(BassMpc.BASS_MPC_StreamCreateFileMemory(true, memory, offset, length, flags));
 }
Esempio n. 3
0
 public static int BASS_MPC_StreamCreateFile(string file, long offset, long length, BASSFlag flags)
 {
     flags |= BASSFlag.BASS_UNICODE;
     return(BassMpc.BASS_MPC_StreamCreateFileUnicode(false, file, offset, length, flags));
 }