Beispiel #1
0
 /// <summary>
 /// Get metadata about a song.
 /// </summary>
 /// <param name="filename">Filename</param>
 /// <param name="tag">Tag to get</param>
 /// <returns>Data contained in this tag</returns>
 private string GetMetadata(string filename, string tag)
 {
     // Create our struct
     Win32.extendedFileInfoStructW data = new Win32.extendedFileInfoStructW();
     data.Metadata = tag;
     data.Filename = filename;
     data.Ret      = new string('\0', 256);
     data.RetLen   = 256;
     // Let's fire it off!
     Win32.SendMessage(_WinampWindow, WM_WA_IPC, ref data, (int)IPCCommand.ExtendedFileInfo);
     Debug.WriteLine(tag + " = " + data.Ret);
     return(data.Ret);
 }
Beispiel #2
0
 /// <summary>
 /// Get metadata about a song.
 /// </summary>
 /// <param name="filename">Filename</param>
 /// <param name="tag">Tag to get</param>
 /// <returns>Data contained in this tag</returns>
 private string GetMetadata(string filename, string tag)
 {
     // Create our struct
     Win32.extendedFileInfoStructW data = new Win32.extendedFileInfoStructW();
     data.Metadata = tag;
     data.Filename = filename;
     data.Ret = new string('\0', 256);
     data.RetLen = 256;
     Win32.SendMessage(_WinampWindow, WM_WA_IPC, ref data, (int)IPCCommand.ExtendedFileInfo);
     //Logger.Instance.LogMessage(tag + " = " + data.Ret);
     return data.Ret;
 }
Beispiel #3
0
		/// <summary>
		/// Get metadata about a song.
		/// </summary>
		/// <param name="filename">Filename</param>
		/// <param name="tag">Tag to get</param>
		/// <returns>Data contained in this tag</returns>
		private string GetMetadata(string filename, string tag)
		{
			// Create our struct
			Win32.extendedFileInfoStructW data = new Win32.extendedFileInfoStructW();
			data.Metadata = tag;
			data.Filename = filename;
			data.Ret = new string('\0', 256);
			data.RetLen = 256;
			// Let's fire it off!
			Win32.SendMessage(_WinampWindow, WM_WA_IPC, ref data, (int)IPCCommand.ExtendedFileInfo);
			Debug.WriteLine(tag + " = " + data.Ret);
			return data.Ret;
		}