]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libxine/files/libxine-libvorbis.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libxine / files / libxine-libvorbis.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 Index: xine-lib-1.0/src/libvorbis/xine_decoder.c
7 ===================================================================
8 --- xine-lib-1.0.orig/src/libvorbis/xine_decoder.c      2005-02-20 18:21:57.924625900 +0100
9 +++ xine-lib-1.0/src/libvorbis/xine_decoder.c   2005-02-20 18:52:02.016033646 +0100
10 @@ -40,7 +40,7 @@
11  #include "buffer.h"
12  
13  #include <ogg/ogg.h>
14 -#include <vorbis/codec.h>
15 +#include <tremor/ivorbiscodec.h>
16  
17  #define MAX_NUM_SAMPLES 4096
18  
19 @@ -216,7 +216,7 @@
20   
21    } else if (this->output_open) {
22  
23 -    float **pcm;
24 +    int **pcm;
25      int samples;
26  
27      if(vorbis_synthesis(&this->vb,&this->op,1)==0) 
28 @@ -245,9 +245,9 @@
29          interleave */
30        for(i=0;i<this->vi.channels;i++){
31         ogg_int16_t *ptr=audio_buffer->mem+i;
32 -       float  *mono=pcm[i];
33 +       int  *mono=pcm[i];
34         for(j=0;j<bout;j++){
35 -         int val=mono[j]*32767.f;
36 +         int val=mono[j]>>9;
37           /* might as well guard against clipping */
38           if(val>32767){
39             val=32767;