Ticket #1104: mythtv_ac3.51.patch

File mythtv_ac3.51.patch, 3.4 KB (added by Mark Spieth, 18 years ago)

patch for mingw

  • libs/libmyth/audiooutputdx.h

     
    3838    virtual void Reconfigure(int audio_bits,
    3939                             int audio_channels,
    4040                             int audio_samplerate,
    41                              bool audio_passthru,
    42                              AudioCodecMode aom = AUDIOCODECMODE_NORMAL);
     41                             bool audio_passthru);
    4342    virtual void SetBlocking(bool blocking);
    4443
    4544    virtual bool AddSamples(char *buffer, int samples, long long timecode);
  • libs/libmyth/audiooutputdx.cpp

     
    133133void AudioOutputDX::Reconfigure(int audio_bits,
    134134                                int audio_channels,
    135135                                int audio_samplerate,
    136                                 int audio_passthru,
    137                                 AudioCodecMode laom)
     136                                int audio_passthru)
    138137{
    139138    if (dsbuffer)
    140139        DestroyDSBuffer();
  • libs/libmyth/audiooutputbase.cpp

     
    1414#include <qdeepcopy.h>
    1515
    1616// MythTV headers
     17#include "compat.h"
    1718#include "audiooutputbase.h"
    1819#include "audiooutputdigitalencoder.h"
    1920#include "SoundTouch.h"
    2021#include "freesurround.h"
    21 #include "compat.h"
    2222
    2323#define LOC QString("AO: ")
    2424#define LOC_ERR QString("AO, ERROR: ")
  • libs/libmyth/audiooutputdigitalencoder.cpp

     
    11// Std C headers
    22#include <cstdio>
    33#include <unistd.h>
     4#include <string.h>
    45
    56#include "config.h"
    67
     
    303304
    304305    //uint32_t x = *(uint32_t*)(data+8);
    305306    // in place swab
    306     swab(data + 8, data + 8, enc_len);
     307    swab((const unsigned char*)(data + 8), data + 8, enc_len);
    307308    //VERBOSE(VB_AUDIO|VB_TIMESTAMP,
    308309    //        QString("DigitalEncoder::Encode swab test %1 %2")
    309310    //        .arg(x,0,16).arg(*(uint32_t*)(data+8),0,16));
  • libs/libmythfreesurround/freesurround.cpp

     
    2121#include <cerrno>
    2222#include <iostream>
    2323#include <sstream>
    24 //#include "compat.h"
     24#include "compat.h"
    2525#include "freesurround.h"
    2626#include "el_processor.h"
    2727#include <vector>
  • libs/libmythfreesurround/libmythfreesurround.pro

     
    55TARGET = mythfreesurround-$$LIBVERSION
    66CONFIG += thread staticlib warn_off
    77
    8 INCLUDEPATH += ../../libs/libavcodec ../..
     8INCLUDEPATH += ../../libs/libavcodec ../.. ../libmyth
    99
    1010#build position independent code since the library is linked into a shared library
    1111QMAKE_CXXFLAGS += -fPIC -DPIC