Winamp SDK FAQ Answer (FAQ)

zhaozj2021-02-08  255

WINAMP SDK FAQ (FAQ) Here is some collected problems, we don't want everyone to repeat the same mistakes, hoping to become a knowledge warehouse, can help everyone.

1, I don't know how to use SDK, can you help me write a plugin?

A good way is to download SDKS and then look at or modify the code. If you have a problem, you can go to the Winamp Forum.

2, how to add a song to the playlist?

Here are some code to add a song to the playlist:

COPYDATASTRUCT cds; cds.dwData = IPC_PLAYFILE; cds.cbData = lstrlen (filename) 1; cds.lpData = (void *) filename; SendMessage (hwnd_winamp, WM_COPYDATA, (WPARAM) NULL, (LPARAM) & cds);

3, how to get the current song file name (no title) First you have to get the current track index from the playlist. Then you can get the file name.

INDEX = SendMessage (HWND_WINAMP, WM_USER, 0, IPC_GetListpos); char * name = sendMessage (hwnd_winamp, wm_user, index, ipc_getplaylistfile);

4, how to get ID3 information? WINAMP cannot provide ID3 information, you have to get the file name of the current song, then resolve ID3 information from files, if you want more information about ID3 information, you can go to ID3.org to see.

转载请注明原文地址:https://www.9cbs.com/read-3300.html

New Post(0)