Problem with my sound file

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
r3v3n93
Posts: 35
Joined: Tue Jun 09, 2020 7:16 am
Graphics Processor: nVidia (Modern GZDoom)
Location: North Korea

Problem with my sound file

Post by r3v3n93 »

A sound of my project doesn't play.
A description of my sound is:
it is .wav File
it plays perfectly when I press "Play" on Slade3
its name is less than 8 words
the other sounds work fine.
https://i.imgur.com/7g86aLN.png
https://i.imgur.com/vhOCQV5.png
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Problem with my sound file

Post by wildweasel »

Try pulling down the console in-game and typing in playsound Weapons/Walther. If the sound plays, then the problem may be with whatever code is invoking the sound (perhaps a typo). If the sound does not play, there might be something strange with the format you've saved it in, and we'd have to see the sound itself to know more.
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Problem with my sound file

Post by Jarewill »

Since it's in a .pk3 archive, include a patch to the sound file.
For example:

Code: Select all

weapons/walther    "sounds/Walther.wav"
Don't forget to also include the file extension (.wav) if it has one.
User avatar
MFG38
Posts: 414
Joined: Sun Apr 14, 2019 8:26 am
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland
Contact:

Re: Problem with my sound file

Post by MFG38 »

Jarewill wrote:Since it's in a .pk3 archive, include a patch to the sound file.
For example:

Code: Select all

weapons/walther    "sounds/Walther.wav" 
That shouldn't be necessary if the file is in the root of the sounds/ folder, though, which it is in this case. My guess is that it's a problem with the actual sound file.
r3v3n93
Posts: 35
Joined: Tue Jun 09, 2020 7:16 am
Graphics Processor: nVidia (Modern GZDoom)
Location: North Korea

Re: Problem with my sound file

Post by r3v3n93 »

Jarewill wrote:Since it's in a .pk3 archive, include a patch to the sound file.
For example:

Code: Select all

weapons/walther    "sounds/Walther.wav" 
Don't forget to also include the file extension (.wav) if it has one.
It worked! Thank you so much.
Post Reply

Return to “Assets (and other stuff)”