annotate Plugins/Input/wav/wav-sndfile.h @ 1030:2ed9643e968b trunk

[svn] - fix g_thread_join() spurious call error (also effects 1.0 -- yuck!)
author nenolod
date Fri, 12 May 2006 13:47:25 -0700
parents d55ffce8b1ba
children f12d7e208b43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
155
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
2 * Copyright (C) 2005 Audacious development team.
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
3 *
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
4 * Based on the xmms_sndfile input plugin:
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
5 * Copyright (C) 2000, 2002 Erik de Castro Lopo
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
6 *
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
10 * (at your option) any later version.
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
11 *
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
15 * GNU General Public License for more details.
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
16 *
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
20 */
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
21
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
22 #ifndef WAV_SNDFILE_H
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
23 #define WAV_SNDFILE_H
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
24
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
25 #define BUFFER_SIZE 8192
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
26 #define TITLE_LEN 64
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
27
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
28 static void plugin_init (void);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
29 static int is_our_file (char *filename);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
30 static void play_start (char *filename);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
31 static void play_stop (void);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
32 static void file_seek (int time);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
33 static int get_time (void);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
34 static void get_song_info (char *filename, char **title, int *length);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
35 static void wav_about (void);
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
36
2746c4cadd07 [svn] Add sndfile version of the wav plugin. Not integrated into buildsystem yet.
chainsaw
parents:
diff changeset
37 #endif