In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, a brief introduction to the MPlyer music player MPlayer is an open source multimedia player released under the GNU General Public license. This software can be used in all major operating systems, such as Linux and other Unix-like systems, Windows and Mac OS X systems. Second, in the development board to achieve MPlayer function specific how to achieve mute 0 mute, why do not use this command we do, what we need to do is to get the interface on the development board, press the corresponding button to achieve the corresponding function, that is, the command processing and call. 3. Idea 1, draw glade interface 2, the main function is divided into parent process and child process: open mplayer, use execlp command child process: (1) build GTK framework to create background window, layout and control access display; (2) write one, next, paused callback function (g_signal_connect) (3) obtain song catalog information DIR * dir; struct dirent * dirp; int i = 0; char * dd = {} Char ll = "; if ((dir=opendir (". / song ")) = = NULL) {printf (" Open dir song fail\ n ") Exit (1) } while ((dirp=readdir (dir))! = NULL) {song_ list [I] = (char*) malloc (sizeof (dirp- > d_name) + 1) Strcpy (song_ list [I], dirp- > d_name); printf ("% s\ n", song_ list [I]); iTunes + A.geshuanxii; printf ("% d\ n", I);} closedir (dir) (4) whether the volume key 1 is muted or enabled by if, range Second, if sets the volume (with commands), which can be done simply to achieve song cutting function 3, song name, singer, song current position, song length, playback progress display thread 1: non-stop issuing commands, printing to the screen, writing to the parent process (while (1) loop command), in order not to print to the computer To redirect to the pipeline (dup command) thread 2: keep reading data in the pipeline, do processing (1) if statement to judge (2) sscanf do cut (3) group package (4) gtk_label_set_text set the contents of the label tag The arrow points to (e.g. gtk_label_set_text (a-> label_cur_time,buff)) 4, Thread 3 lyrics show (1) there is a lyrics file (2) lyrics file parsing, storing linked list (matching time with lyrics) key points: first find the currently played song, compare the current time with the number of songs to match the information
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.