Hi,
I want to play some WAV files, but I have error C2664 in Visual Studio:
error C2664: 'Phonon::MediaObject::setCurrentSource' : conversion error from'const char [24]' to 'const Phonon::MediaSource &'
This is the code:
Phonon::MediaObject *media_object_;
media_object_ = new Phonon::MediaObject(this);
media_object_->setCurrentSource("/sounds/startsound.wav");
media_object_->play();
Error 11 error C2664: 'Phonon::MediaObject::setCurrentSource' : no se puede convertir el parámetro 1 de 'const char [24]' a 'const Phonon::MediaSource &' c:\Naali\devgit\naali\UiModule\Inworld\View\TTSChatWidget.cpp 105 UiModule
Thanks!