For learning language repeat playback media files.
- only support Qt4 with Phonon
mkdir build
cmake ../
make
make install
- Download Qt4.8 compiled by MinGW from qt-project
- Download CMake
- Download GCC4.4, Qt4.8 compiled by MinGW only support MinGW 4.4
Install above toolchain and compile.
Run in Window:
``cmake -G"MinGW Makefiles" ../``
- copy below dlls from MinGW and QT directory into running directory:
- libgcc_s_dw2-1.dll
- mingwm10.dll
- phonon4.dll
- QtCore4.dll
- QtGui4.dll
- QtNetwork4.dll
- QtWebKit4.dll
- phonon_backend
- imageformats
- iconengines
Catching a message "WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded", phonon don't find its backend.
To check phonon backend path, set enviroment various:
export PHONON_DEBUG=5
and run application in console. It will show phonon searching path, such as:
bool Phonon::FactoryPrivate::createBackend() "/usr/lib/qt/plugins/phonon_backend" does not exist
It said it is invalid path of phonon backend. To correct it, set:
export QT_PLUGIN_PATH=${QT_PLUGIN_PATH}:/usr/lib/your_path/plugins
such as:
export QT_PLUGIN_PATH=${QT_PLUGIN_PATH}:/usr/lib/kde4/plugins
Tip
To change phonon backend player, set PHONON_BACKEND:
export PHONON_BACKEND=phonon_gstreamer
export PHONON_BACKEND=phonon_mplayer
export PHONON_BACKEND=phonon_xine
- Use QtMultimedia to support Qt5
- Add sound wave window for audio output and input
Please follow GPLv3. Thanks.