thanks but:
won't work:
Code:
source: Qt.resolvedUrl ("res/reload.wav")
now i try to integrate that *.wav in a resource file (with the Wizard "Add File" ...):
Snippet: *.pro file
Code:
RESOURCES += \
MyResources.qrc
Snippet: MyResources.qrc:
Code:
/audio
--audio/reload.wav
won't work - no audio - Qt Gameenabler Audio Plugin:
Code:
AudioMixer {
id: mymixer
absoluteVolume: 1.0
//enabled: true
AudioBuffer {
id: clickSound
source: "qrc:/audio/reload.wav"
volume: 1.0
speed: 1.0
//mixer: mymixer
}
}
won't work - no audio - QML Audio Element (Soundeffect):
Code:
SoundEffect {
id: play_Schuss
source: "qrc:/audio/reload.wav" // incl. "qrc" // excl. Prefix
volume: 1.0
}
Code:
SoundEffect {
id: play_Schuss
source: "qrc:/audio/audio/reload.wav" // incl. "qrc" // incl. Prefix
volume: 1.0
}
Code:
SoundEffect {
id: play_Schuss
source: ":/audio/reload.wav" // excl. "qrc" // excl. Prefix
volume: 1.0
}
Code:
SoundEffect {
id: play_Schuss
source: ":/audio/audio/reload.wav" // excl. "qrc" // incl. Prefix
volume: 1.0
}
now i have a resource problem?!!?!?!
this qt is awesome...