示例#1
0
        public static Source NewSource(string filename, Source.Type type = Source.Type.Stream)
        {
            //return NewSource(FileSystem.NewFile(filename));
            var file = FileSystem.NewFile(filename);
            var dec  = Sound.NewDecoder(file);

            return(NewSource(dec));
        }
示例#2
0
 public static Source NewSource(FileData fdata, Source.Type type = Source.Type.Stream)
 {
     return(NewSource(Sound.NewDecoder(fdata)));
 }
示例#3
0
        //// new plus
        public static Source NewSource(File file, Source.Type type = Source.Type.Stream)
        {
            var sounddata = Sound.NewSoundData(file);

            return(NewSource(sounddata));
        }