]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libxine/libxine-1.1.0/tremor.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libxine / libxine-1.1.0 / tremor.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- xine-lib-1.1.0/src/demuxers/demux_ogg.c~demuxogg
7 +++ xine-lib-1.1.0/src/demuxers/demux_ogg.c
8 @@ -40,7 +40,7 @@
9  #include <inttypes.h>
10  
11  #include <ogg/ogg.h>
12 -#include <vorbis/codec.h>
13 +#include <tremor/ivorbiscodec.h>
14  
15  #ifdef HAVE_SPEEX
16  #ifdef HAVE_SPEEX_SUBDIR
17 --- xine-lib-1.1.0/src/demuxers/Makefile.am~demuxogg
18 +++ xine-lib-1.1.0/src/demuxers/Makefile.am
19 @@ -1,6 +1,6 @@
20  include $(top_srcdir)/misc/Makefile.common
21  
22 -AM_CFLAGS = $(THEORA_CFLAGS) $(OGG_CFLAGS) $(SPEEX_CFLAGS) $(LIBMODPLUG_CFLAGS)
23 +AM_CFLAGS = $(THEORA_CFLAGS) $(OGG_CFLAGS) $(VORBIS_CFLAGS) $(SPEEX_CFLAGS) $(LIBMODPLUG_CFLAGS)
24  
25  libdir = $(XINE_PLUGINDIR)
26  
27
28 #
29 # Patch managed by http://www.holgerschurig.de/patcher.html
30 #
31
32 --- xine-lib-1.1.0/src/libvorbis/xine_decoder.c~libxine-libvorbis
33 +++ xine-lib-1.1.0/src/libvorbis/xine_decoder.c
34 @@ -40,7 +40,7 @@
35  #include "buffer.h"
36  
37  #include <ogg/ogg.h>
38 -#include <vorbis/codec.h>
39 +#include <tremor/ivorbiscodec.h>
40  
41  #define MAX_NUM_SAMPLES 4096
42  
43 @@ -217,7 +217,7 @@
44   
45    } else if (this->output_open) {
46  
47 -    float **pcm;
48 +    int **pcm;
49      int samples;
50  
51      if(vorbis_synthesis(&this->vb,&this->op)==0) 
52 @@ -246,9 +246,9 @@
53          interleave */
54        for(i=0;i<this->vi.channels;i++){
55         ogg_int16_t *ptr=audio_buffer->mem+i;
56 -       float  *mono=pcm[i];
57 +       int  *mono=pcm[i];
58         for(j=0;j<bout;j++){
59 -         int val=mono[j]*32767.f;
60 +         int val=mono[j]>>9;
61           /* might as well guard against clipping */
62           if(val>32767){
63             val=32767;