Beispiel #1
0
        public static int BASS_FLAC_StreamCreateURL(string url, int offset, BASSFlag flags, DOWNLOADPROC proc, IntPtr user)
        {
            flags |= BASSFlag.BASS_UNICODE;
            int num = BassFlac.BASS_FLAC_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    = BassFlac.BASS_FLAC_StreamCreateURLAscii(url, offset, flags, proc, user);
            }
            return(num);
        }
Beispiel #2
0
 public static int BASS_FLAC_StreamCreateFile(IntPtr memory, long offset, long length, BASSFlag flags)
 {
     return(BassFlac.BASS_FLAC_StreamCreateFileMemory(true, memory, offset, length, flags));
 }
Beispiel #3
0
 public static int BASS_FLAC_StreamCreateFile(string file, long offset, long length, BASSFlag flags)
 {
     flags |= BASSFlag.BASS_UNICODE;
     return(BassFlac.BASS_FLAC_StreamCreateFileUnicode(false, file, offset, length, flags));
 }