By getting involved with Phonon, you can choose between three different main tasks.

By getting involved with Phonon, you can choose between three different main tasks.

−

* '''Using the Phonon API''', which allows you to develop your own multimedia application. In fact any application which needs sound can take benefits from the phonon API.

+

* '''Using the Phonon API''', which allows you to develop your own multimedia application. '''This is discussed here.'''

* '''Hacking the Phonon library'''.

* '''Hacking the Phonon library'''.

* '''Writing Phonon backend''', this consists in writing interfaces that allows Phonon to use different sound/video engine. This usually requires good skills and knowledge of the engine you interface with.

* '''Writing Phonon backend''', this consists in writing interfaces that allows Phonon to use different sound/video engine. This usually requires good skills and knowledge of the engine you interface with.

−

−

Beginners will probably be more interested by the first task.

= Using the phonon API =

= Using the phonon API =

−

The following example is taken from [http://www.englishbreakfastnetwork.org/apidocs/apidox-kde-4.0/kdelibs-apidocs/phonon/html/index.html englishbreakfastnetwork]. It plays /tmp/example.wav. To change the sound device that is used by default, use the command <tt>systemsettings</tt>.

+

The following example lets you select a music file and plays it. To change the sound device that is used by default, use the command <tt>systemsettings</tt>.