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)); }
public static Source NewSource(FileData fdata, Source.Type type = Source.Type.Stream) { return(NewSource(Sound.NewDecoder(fdata))); }
//// new plus public static Source NewSource(File file, Source.Type type = Source.Type.Stream) { var sounddata = Sound.NewSoundData(file); return(NewSource(sounddata)); }