コード例 #1
0
        public ImportMusics(IList selectedItems, string strMediaName, string mediaId)
        {
            _current = 1;

            _selectedItems = selectedItems as List <string>;

            _mediaName  = strMediaName;
            _mediaId    = mediaId;
            _importType = MusicImport.Csv;
        }
コード例 #2
0
	// Use this for initialization
	void Start () {
		mImport = gameObject.GetComponent<MusicImport>();
		SetupSongLabels();
		SetAudioMods(0);
		ResetGlobalValues();
		if(Global.lastDirectory != null) {
			currentDirectory = Global.lastDirectory;
			currentDrive = Global.lastDrive;
		}
	}
コード例 #3
0
    //private IPicture pic;

    void Awake()
    {
        import     = GameObject.Find("Black Fade").GetComponent <MusicImport>();
        songDirect = songLocations.songAddresses[import.songNum];
        TagLib.File tfile = TagLib.File.Create(songDirect);
        title           = tfile.Tag.Title;
        artist          = tfile.Tag.FirstAlbumArtist;
        length          = tfile.Properties.Duration.ToString();
        titleText.text  = title;
        artistText.text = artist;
        int index = length.LastIndexOf(".");

        if (index > 0)
        {
            length = length.Substring(0, index);
        }
        lengthText.text = length;
        //pic = tfile.Tag.Pictures[0];

        //string search = tfile.Tag.Album.Replace(" ", "_");
        //StartCoroutine(FindCover(search));
    }
コード例 #4
0
 public ImportMusics(XElement[] nodes)
 {
     _current       = 1;
     _selectedNodes = nodes;
     _importType    = MusicImport.XML;
 }