Musicvalue="Sounds/yellow.mp3";
audioOutputmusic = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObjectmusic = new Phonon::MediaObject(this);
mediaObjectmusic->setCurrentSource(Phonon::MediaSource(Musicvalue));
Phonon::createPath(mediaObjectmusic, audioOutputmusic);
audioOutputmusic->setVolume(1.0);
mediaObjectmusic->play();
Musicvalue="Sounds/yellow.mp3";
audioOutputmusic = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObjectmusic = new Phonon::MediaObject(this);
mediaObjectmusic->setCurrentSource(Phonon::MediaSource(Musicvalue));
Phonon::createPath(mediaObjectmusic, audioOutputmusic);
audioOutputmusic->setVolume(1.0);
mediaObjectmusic->play();
To copy to clipboard, switch view to plain text mode
But there is no change in volume
Bookmarks