PDA

View Full Version : Phonon



lamp
6th October 2010, 10:36
Hi

My Code working without any Error But No sound and speaker is silent! :confused:




QList<Phonon::AudioOutputDevice> audioOutputDevices =
Phonon::BackendCapabilities::availableAudioOutputD evices();

player = new Phonon::MediaObject(this);
player->setCurrentSource(Phonon::MediaSource(AZAN));
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);

audioOutput->setOutputDevice(audioOutputDevices[0]);
qDebug()<<audioOutputDevices;

Phonon::Path path = Phonon::createPath(player, audioOutput);

audioOutput->setVolume(100);
player->play();


Result of qDebug:

("ALSA default output", "OSS default output", "Jack Audio Connection Kit")

Using Beagleboard and Ubuntu 10.04.1 and Qt 4.6.2

Tanks

wysota
6th October 2010, 10:46
What is AZAN?

lamp
6th October 2010, 10:53
AZAN = File Path such az /home/12.mp3

wysota
6th October 2010, 11:03
Does it really contain /home/12.mp3?

lamp
6th October 2010, 11:07
yes, and run app with root permission

lamp
6th October 2010, 11:12
note:
My Code working goode on X86 pc

wysota
6th October 2010, 11:13
Try moving the file elsewhere and running the application with your regular user.

By the way, do you have a proper phonon backend installed? Like gstreamer.

lamp
6th October 2010, 11:17
:)

Installing libxine1-ffmpeg and problem resolved

Thanks alot