]> git.pld-linux.org Git - packages/smpeg.git/blob - smpeg-gcc4.patch
4a0eeb4530ae5922be18be7a056ca3f05268d6ef
[packages/smpeg.git] / smpeg-gcc4.patch
1 Index: MPEGaudio.h
2 ===================================================================
3 RCS file: /cvs/cvsroot/smpeg/MPEGaudio.h,v
4 retrieving revision 1.23
5 diff -u -p -r1.23 MPEGaudio.h
6 --- smpeg/MPEGaudio.h   17 Jul 2001 19:52:24 -0000      1.23
7 +++ smpeg/MPEGaudio.h   6 Dec 2005 06:10:43 -0000
8 @@ -151,12 +151,6 @@ private:
9  /* The actual MPEG audio class */
10  class MPEGaudio : public MPEGerror, public MPEGaudioaction {
11  
12 -    friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
13 -    friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len);
14 -#ifdef THREADED_AUDIO
15 -    friend int Decode_MPEGaudio(void *udata);
16 -#endif
17 -
18  public:
19      MPEGaudio(MPEGstream *stream, bool initSDL = true);
20      virtual ~MPEGaudio();
21 @@ -367,6 +361,20 @@ public:
22  #define N_TIMESTAMPS 5
23  
24    double timestamp[N_TIMESTAMPS];
25 +
26 +  /* Functions which access MPEGaudio internals */
27 +  friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
28 +  friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len);
29 +#ifdef THREADED_AUDIO
30 +  friend int Decode_MPEGaudio(void *udata);
31 +#endif
32  };
33  
34 +/* Need to duplicate the prototypes, this is not a typo :) */
35 +void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
36 +int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len);
37 +#ifdef THREADED_AUDIO
38 +int Decode_MPEGaudio(void *udata);
39 +#endif
40 +
41  #endif /* _MPEGAUDIO_H_ */
This page took 0.078967 seconds and 2 git commands to generate.