Ejemplo n.º 1
0
        public static int BASS_HLS_StreamCreateURL(string url, int offset, BASSFlag flags, DOWNLOADPROC proc, IntPtr user)
        {
            flags |= BASSFlag.BASS_UNICODE;
            int num = BassHls.BASS_HLS_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    = BassHls.BASS_HLS_StreamCreateURLAscii(url, offset, flags, proc, user);
            }
            return(num);
        }
Ejemplo n.º 2
0
 public static int BASS_HLS_StreamCreateFile(IntPtr memory, long offset, long length, BASSFlag flags)
 {
     return(BassHls.BASS_HLS_StreamCreateFileMemory(true, memory, offset, length, flags));
 }
Ejemplo n.º 3
0
 public static int BASS_HLS_StreamCreateFile(string file, long offset, long length, BASSFlag flags)
 {
     flags |= BASSFlag.BASS_UNICODE;
     return(BassHls.BASS_HLS_StreamCreateFileUnicode(false, file, offset, length, flags));
 }