⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 playlist.h

📁 mpg123 是 MPEG 1.0/2.0/2.5 的实时播放软件
💻 H
字号:
/*	playlist: playlist logic	copyright 1995-2006 by the mpg123 project - free software under the terms of the LGPL 2.1	see COPYING and AUTHORS files in distribution or http://mpg123.de	initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis*/#ifndef MPG123_PLAYLIST_H#define MPG123_PLAYLIST_H#include "stringbuf.h"enum playlist_type { UNKNOWN = 0, M3U, PLS, NO_LIST };typedef struct listitem{	char* url; /* the filename */	char freeit; /* if it was allocated and should be free()d here */} listitem;typedef struct playlist_struct{	FILE* file; /* the current playlist stream */	size_t entry; /* entry in the playlist file */	size_t size;	size_t fill;	size_t pos;	size_t alloc_step;	struct listitem* list;	struct stringbuf linebuf;	struct stringbuf dir;	enum playlist_type type;} playlist_struct;extern struct playlist_struct pl;/* create playlist form argv including reading of playlist file */void prepare_playlist(int argc, char** argv);/* returns the next url to play or NULL when there is none left */char *get_next_file();/* frees memory that got allocated in prepare_playlist */void free_playlist();#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -