Tsp, im sorry if i did't ask my problem clearly enough.
I guess i had the DEPLOYMENT Stuff inside the .sis package well. Like your code, i got my external files at something like "!:\private\ee097ed6\levels\board.tmx" with this code at mh .pro
CONFIG += mobility
MOBILITY =
symbian {
TARGET.UID3 = 0xe091ff94
# TARGET.CAPABILITY +=
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
mysound.sources = sound\*
mysound.path = \sound
bonang.sources = sound\bonang\*
bonang.path= \sound\bonang
gong.sources = sound\gong\*
gong.path=\sound\gong
jengglong.sources = sound\jengglong\*
jengglong.path= \sound\jengglong
kempul.sources = sound\kempul\*
kempul.path = \sound\kempul
kendang.sources = sound\kendang\*
kendang.path = \sound\kendang
saron.sources = sound\saron\*
saron.path = \sound\saron
gambang.sources = sound\gambang\*
gambang.path = \sound\gambang
DEPLOYMENT += mysound bonang gong jengglong kempul kendang saron gambang
}
CONFIG += mobility
MOBILITY =
symbian {
TARGET.UID3 = 0xe091ff94
# TARGET.CAPABILITY +=
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
mysound.sources = sound\*
mysound.path = \sound
bonang.sources = sound\bonang\*
bonang.path= \sound\bonang
gong.sources = sound\gong\*
gong.path=\sound\gong
jengglong.sources = sound\jengglong\*
jengglong.path= \sound\jengglong
kempul.sources = sound\kempul\*
kempul.path = \sound\kempul
kendang.sources = sound\kendang\*
kendang.path = \sound\kendang
saron.sources = sound\saron\*
saron.path = \sound\saron
gambang.sources = sound\gambang\*
gambang.path = \sound\gambang
DEPLOYMENT += mysound bonang gong jengglong kempul kendang saron gambang
}
To copy to clipboard, switch view to plain text mode
And i guess my mistake is the way i access the file. I used QCoreApplication::ApplicationDirPath() to try access the root of my application so i can added string like ("\levels\board.tmx") to access the file. The complete code is
gamelan =
Phonon::createPlayer(Phonon::MusicCategory,
Phonon::MediaSource(alamat+"/sound/gamelan.mp3"));
alamat = QCoreApplication::applicationDirPath();
gamelan =
Phonon::createPlayer(Phonon::MusicCategory,
Phonon::MediaSource(alamat+"/sound/gamelan.mp3"));
To copy to clipboard, switch view to plain text mode
is there any mistakes i made?
Bookmarks