annotate src/flacng/flac_compat112.c @ 2171:a4387938cc7d

set have_subtune
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 18 Nov 2007 21:45:12 +0900
parents 626f78ff2439
children f1b6f1b2cdb3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1246
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
1 /*
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
2 * A FLAC decoder plugin for the Audacious Media Player
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
3 * Copyright (C) 2005 Ralf Ertzinger
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
4 *
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
8 * (at your option) any later version.
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
9 *
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
13 * GNU General Public License for more details.
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
14 *
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
18 */
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
19
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
20 #include <FLAC/all.h>
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
21 #include "flac_compat112.h"
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
22 #include "debug.h"
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
23
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
24 #if !defined(FLAC_API_VERSION_CURRENT)
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
25
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
26 FLAC__SeekableStreamDecoderState FLAC__stream_decoder_init_stream(
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
27 FLAC__SeekableStreamDecoder* decoder,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
28 FLAC__SeekableStreamDecoderReadCallback read_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
29 FLAC__SeekableStreamDecoderSeekCallback seek_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
30 FLAC__SeekableStreamDecoderTellCallback tell_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
31 FLAC__SeekableStreamDecoderLengthCallback length_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
32 FLAC__SeekableStreamDecoderEofCallback eof_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
33 FLAC__SeekableStreamDecoderWriteCallback write_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
34 FLAC__SeekableStreamDecoderMetadataCallback metadata_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
35 FLAC__SeekableStreamDecoderErrorCallback error_callback,
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
36 void * client_data) {
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
37
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
38 FLAC__SeekableStreamDecoderState ret;
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
39
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
40 _ENTER;
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
41
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
42 FLAC__seekable_stream_decoder_set_read_callback(decoder, read_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
43 FLAC__seekable_stream_decoder_set_seek_callback(decoder, seek_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
44 FLAC__seekable_stream_decoder_set_tell_callback(decoder, tell_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
45 FLAC__seekable_stream_decoder_set_length_callback(decoder, length_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
46 FLAC__seekable_stream_decoder_set_eof_callback(decoder, eof_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
47 FLAC__seekable_stream_decoder_set_write_callback(decoder, write_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
48 FLAC__seekable_stream_decoder_set_metadata_callback(decoder, metadata_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
49 FLAC__seekable_stream_decoder_set_error_callback(decoder, error_callback);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
50 FLAC__seekable_stream_decoder_set_client_data(decoder, client_data);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
51
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
52 ret = FLAC__seekable_stream_decoder_init(decoder);
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
53
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
54 _LEAVE ret;
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
55 }
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
56
626f78ff2439 - Add FLAC 1.1.2 compatibility
sun@fc5-buildsys
parents:
diff changeset
57 #endif