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

📄 wav.h

📁 xmms-1.2.10.tar.gz学习使用的就下吧
💻 H
字号:
/*  XMMS - Cross-platform multimedia player *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#ifndef WAV_H#define WAV_H#include "config.h"#include <pthread.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <glib.h>#include "xmms/plugin.h"#define	WAVE_FORMAT_UNKNOWN		(0x0000)#define	WAVE_FORMAT_PCM			(0x0001)#define	WAVE_FORMAT_ADPCM		(0x0002)#define	WAVE_FORMAT_ALAW		(0x0006)#define	WAVE_FORMAT_MULAW		(0x0007)#define	WAVE_FORMAT_OKI_ADPCM		(0x0010)#define	WAVE_FORMAT_DIGISTD		(0x0015)#define	WAVE_FORMAT_DIGIFIX		(0x0016)#define	IBM_FORMAT_MULAW         	(0x0101)#define	IBM_FORMAT_ALAW			(0x0102)#define	IBM_FORMAT_ADPCM         	(0x0103)extern InputPlugin wav_ip;typedef struct{	FILE *file;	short format_tag, channels, block_align, bits_per_sample, eof, going;	long samples_per_sec, avg_bytes_per_sec;	unsigned long position, length;	int seek_to, data_offset;	pid_t pid;}WaveFile;static void wav_init(void);static int is_our_file(char *filename);static void play_file(char *filename);static void stop(void);static void seek(int time);static void wav_pause(short p);static int get_time(void);static void get_song_info(char *filename, char **title, int *length);#endif

⌨️ 快捷键说明

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