The Following User Says Thank You to crabsody For This Useful Post: | ||
![]() |
2011-01-30
, 16:44
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#2
|
![]() |
2011-01-30
, 16:52
|
|
Posts: 63 |
Thanked: 12 times |
Joined on Feb 2010
@ Thessaloniki Greece
|
#3
|
![]() |
2011-01-31
, 07:46
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#4
|
![]() |
2011-02-04
, 18:51
|
|
Posts: 63 |
Thanked: 12 times |
Joined on Feb 2010
@ Thessaloniki Greece
|
#5
|
![]() |
2011-02-04
, 19:00
|
Posts: 1,086 |
Thanked: 2,964 times |
Joined on Jan 2010
|
#6
|
void startRingtone(const QString &tonePath){ ringTonePath = tonePath; mediaObject = new Phonon::MediaObject(this); Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this); Phonon::Path path = Phonon::createPath(mediaObject, audioOutput); mediaObject->setCurrentSource(Phonon::MediaSource(tonePath)); mediaObject->play(); connect(mediaObject, SIGNAL(finished()), this, SLOT(repeatRingTone())); }
![]() |
2011-02-05
, 11:45
|
|
Posts: 63 |
Thanked: 12 times |
Joined on Feb 2010
@ Thessaloniki Greece
|
#8
|
![]() |
2011-02-05
, 13:10
|
Posts: 1,086 |
Thanked: 2,964 times |
Joined on Jan 2010
|
#9
|
Κojacker one more question. Why your wav files are not in the qrc files? I try to play some mp3 files which I have added to qrc but they don't play...
![]() |
2011-02-05
, 14:02
|
|
Posts: 63 |
Thanked: 12 times |
Joined on Feb 2010
@ Thessaloniki Greece
|
#10
|
QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());
qDebug() << "Device name" << info.deviceName() << endl;
But when I run it to my N900 nothing is printed on the screen!!!
Can somebody help me with this?