blob: f8d616979013076d09534e16a31d9daf51833258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-ak,v 1.1 2007/01/13 15:35:52 wiz Exp $
--- oggenc/flac.h.orig 2005-06-03 10:15:10.000000000 +0000
+++ oggenc/flac.h
@@ -5,10 +5,21 @@
#include "encode.h"
#include "audio.h"
#include <stdio.h>
+#include <FLAC/stream_decoder.h>
+#if !defined(FLAC_API_VERSION_CURRENT) || (FLAC_API_VERSION_CURRENT < 8)
+#include <OggFLAC/stream_decoder.h>
+#define NEED_EASYFLAC 1
+#endif
+#if NEED_EASYFLAC
#include "easyflac.h"
+#endif
typedef struct {
+#if NEED_EASYFLAC
EasyFLAC__StreamDecoder *decoder;
+#else
+ FLAC__StreamDecoder *decoder;
+#endif
short channels;
int rate;
long totalsamples; /* per channel, of course */
|