Mercurial > audlegacy-plugins
annotate src/flacng/flac_compat112.h @ 2512:1f6b5f5768e2
Remove some completely useless null-pointer checks, g_free() checks the pointer anyway.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Apr 2008 22:58:35 +0300 |
parents | aa94631d1a02 |
children |
rev | line source |
---|---|
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
1 #ifndef FLAC_COMPAT112_H |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
2 #define FLAC_COMPAT112_H |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
3 |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
4 #if !defined(FLAC_API_VERSION_CURRENT) |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
5 |
1246 | 6 /* Basic stream decoder type */ |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
7 #define FLAC__StreamDecoder FLAC__SeekableStreamDecoder |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
8 |
1246 | 9 /* Stream decoder functions */ |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
10 #define FLAC__StreamDecoderReadStatus FLAC__SeekableStreamDecoderReadStatus |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
11 #define FLAC__StreamDecoderSeekStatus FLAC__SeekableStreamDecoderSeekStatus |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
12 #define FLAC__StreamDecoderTellStatus FLAC__SeekableStreamDecoderTellStatus |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
13 #define FLAC__StreamDecoderLengthStatus FLAC__SeekableStreamDecoderLengthStatus |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
14 #define FLAC__stream_decoder_new FLAC__seekable_stream_decoder_new |
1246 | 15 #define FLAC__stream_decoder_set_metadata_respond FLAC__seekable_stream_decoder_set_metadata_respond |
16 #define FLAC__stream_decoder_process_single FLAC__seekable_stream_decoder_process_single | |
17 #define FLAC__stream_decoder_seek_absolute FLAC__seekable_stream_decoder_seek_absolute | |
18 #define FLAC__stream_decoder_get_state FLAC__seekable_stream_decoder_get_state | |
19 #define FLAC__stream_decoder_flush FLAC__seekable_stream_decoder_flush | |
20 #define FLAC__stream_decoder_reset FLAC__seekable_stream_decoder_reset | |
21 #define FLAC__stream_decoder_process_until_end_of_metadata FLAC__seekable_stream_decoder_process_until_end_of_metadata | |
2270
aa94631d1a02
- Add _delete for flac 1.1.2
Ralf Ertzinger <ralf@skytale.net>
parents:
1248
diff
changeset
|
22 #define FLAC__stream_decoder_delete FLAC__seekable_stream_decoder_delete |
1246 | 23 #define FLAC__StreamDecoderInitStatusString FLAC__SeekableStreamDecoderStateString |
24 #define FLAC__StreamDecoderStateString FLAC__SeekableStreamDecoderStateString | |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
25 |
1246 | 26 /* Constants and types */ |
27 #define FLAC__StreamDecoderInitStatus FLAC__SeekableStreamDecoderState | |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
28 #define FLAC__STREAM_DECODER_SEEK_STATUS_ERROR FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_ERROR |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
29 #define FLAC__STREAM_DECODER_SEEK_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_OK |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
30 #define FLAC__STREAM_DECODER_TELL_STATUS_ERROR FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
31 #define FLAC__STREAM_DECODER_TELL_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
32 #define FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_ERROR |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
33 #define FLAC__STREAM_DECODER_LENGTH_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK |
1246 | 34 #define FLAC__STREAM_DECODER_INIT_STATUS_OK FLAC__SEEKABLE_STREAM_DECODER_OK |
35 #define FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK | |
1248
0e0f73fed025
- Fix end-of-stream detection for 1.1.2
Ralf Ertzinger <ralf@skytale.net>
parents:
1246
diff
changeset
|
36 #define FLAC__STREAM_DECODER_END_OF_STREAM FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
37 |
1246 | 38 FLAC__SeekableStreamDecoderState FLAC__stream_decoder_init_stream( |
930
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
39 FLAC__SeekableStreamDecoder* decoder, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
40 FLAC__SeekableStreamDecoderReadCallback read_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
41 FLAC__SeekableStreamDecoderSeekCallback seek_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
42 FLAC__SeekableStreamDecoderTellCallback tell_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
43 FLAC__SeekableStreamDecoderLengthCallback length_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
44 FLAC__SeekableStreamDecoderEofCallback eof_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
45 FLAC__SeekableStreamDecoderWriteCallback write_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
46 FLAC__SeekableStreamDecoderMetadataCallback metadata_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
47 FLAC__SeekableStreamDecoderErrorCallback error_callback, |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
48 void * client_data); |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
49 |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
50 #endif |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
51 |
2f742d127b3e
[svn] - initial import of flacng from audacious-flacng-0.012
nenolod
parents:
diff
changeset
|
52 #endif |