Jump to content

Mp3 Tag Dll - Example Ams


pairs
 Share

Recommended Posts

  • Editor

Merhaba arkadaşlar bugün sizlere mp3 dosyalarında tagları çekebilmek için kullanmak amacıyla bir dll yazdım ve bunun tanıtımını yapıcam.Normalde ams 7.5 de plugin vardı onun la yapılıyordu ama artık 8 kullanıldıgı için 8 de öyle bir plugin göremedim.

Dll C# ile yazılmıştır.Kullanımına örnek olarak apz hazırladım dll proje içindedir ektende vereceğim. 

 

 

Dll in Kod içeriği.Yani dll den neler çekebilirsiniz hepsi burada.

      [DllExport("Album", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
       public static string Album(string mp3)
      {
          Tagger tag = new Tagger(mp3);
          
         return tag.Album;
      }

      [DllExport("Artist", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string Artist(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.Artist;
      }

      [DllExport("Comment", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string Comment(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.Comment;
      }

      [DllExport("FileSize", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static long FileSize(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.FileSize;
      }

      [DllExport("GenreID", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string GenreID(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.GenreID;
      }

      [DllExport("Title", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string Title(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.Title;
      }

      [DllExport("TitleNumber", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string TitleNumber(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.TitleNumber;
      }

      [DllExport("Year", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
      public static string Year(string mp3)
      {
          Tagger tag = new Tagger(mp3);

          return tag.Year;
      }  

Örnek Proje :

 

https://www.dropbox.com/s/v3nqrncmhf0dgrr/ID3-Tag.apz

Link to comment
Share on other sites

  • Editor

 

[font='trebuchet ms']Windows 7 x86 sistemde denedim, çalıştı. Net4 yüklü sadece. Tabi mevcut NET2 de var.[/font]

 

Mp3 deki resim değiştirme işlemine bakıyorum şuanda.Onuda halledeyim güzel birşey olacagına inanıyorum.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...