示例#1
0
        public void AddSound(string name, IntPtr pointer, long lenth)
        {
            SoundEx sound = new SoundEx(name, "none");

            sound.stream = Bass.BASS_StreamCreateFile(pointer, 0L, lenth, BASSFlag.BASS_SAMPLE_FLOAT);
            soundlist.Add(name, sound);
            soundRefreshTick.Add(name, new Tick(0));
        }
示例#2
0
        public void AddSound(string name, string path)
        {
            //Bass.BASS_StreamCreateFile创建音频流,第一个参数是文件名,
            //第二个参数是文件流开始位置,第三个是文件流长度 0为使用文件整个长度,最后一个是流的创建模式。
            SoundEx sound = new SoundEx(name, path);

            sound.stream = Bass.BASS_StreamCreateFile(path, 0L, 0L, BASSFlag.BASS_SAMPLE_FLOAT);
            soundlist.Add(name, sound);
            soundRefreshTick.Add(name, new Tick(0));
        }
示例#3
0
 public void AddSound(string name, IntPtr pointer ,long lenth)
 {
     SoundEx sound = new SoundEx(name, "none");
     sound.stream = Bass.BASS_StreamCreateFile(pointer, 0L, lenth, BASSFlag.BASS_SAMPLE_FLOAT);
     soundlist.Add(name, sound);
     soundRefreshTick.Add(name, new Tick(0));
 }
示例#4
0
 public void AddSound(string name , string path)
 {
     //Bass.BASS_StreamCreateFile创建音频流,第一个参数是文件名,
     //第二个参数是文件流开始位置,第三个是文件流长度 0为使用文件整个长度,最后一个是流的创建模式。
     SoundEx sound = new SoundEx(name, path);
     sound.stream = Bass.BASS_StreamCreateFile(path, 0L, 0L, BASSFlag.BASS_SAMPLE_FLOAT);
     soundlist.Add(name, sound);
     soundRefreshTick.Add(name, new Tick(0));
 }