src/3rdparty/phonon/waveout/mediaobject.cpp
changeset 30 5dc02b23752f
parent 3 41300fa6a67c
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
    48 
    48 
    49         QString getErrorText(MMRESULT error)
    49         QString getErrorText(MMRESULT error)
    50         {
    50         {
    51             ushort b[256];
    51             ushort b[256];
    52             waveOutGetErrorText(error, (LPWSTR)b, 256);
    52             waveOutGetErrorText(error, (LPWSTR)b, 256);
    53             return QString::fromUtf16(b);
    53             return QString((const QChar *)b);
    54         }
    54         }
    55 
    55 
    56         class WorkerThread : public QThread
    56         class WorkerThread : public QThread
    57         {
    57         {
    58          Q_OBJECT
    58          Q_OBJECT
    68             buffer->resize(i);
    68             buffer->resize(i);
    69             (*finished) = true;
    69             (*finished) = true;
    70         }
    70         }
    71 
    71 
    72 
    72 
    73         void CALLBACK MediaObject::WaveOutCallBack(HWAVEOUT m_hWaveOut, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2)
    73         void QT_WIN_CALLBACK MediaObject::WaveOutCallBack(HWAVEOUT m_hWaveOut, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2)
    74         {
    74         {
    75             Q_UNUSED(m_hWaveOut);
    75             Q_UNUSED(m_hWaveOut);
    76             Q_UNUSED(dwInstance);
    76             Q_UNUSED(dwInstance);
    77             Q_UNUSED(dwParam2);
    77             Q_UNUSED(dwParam2);
    78 
    78