Adding sound to dialogues

Announcements, support questions, and discussion for the Dialogue System.
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Adding sound to dialogues

Post by Eldritch_Horror »

Hi.
I've dragged the file in, but I can't hear it. Can you advise?
Thanks.
Attachments
Screenshot 2024-04-17 1518251.png
Screenshot 2024-04-17 1518251.png (349.07 KiB) Viewed 98 times
Screenshot 2024-04-17 151232.png
Screenshot 2024-04-17 151232.png (150.39 KiB) Viewed 98 times
User avatar
Tony Li
Posts: 20656
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding sound to dialogues

Post by Tony Li »

Hi,

Are there any errors or warnings in the Console window?

Is "Audio/Area 1 Reorientation/Bernard/Bernard_Hello" inside a folder named "Resources" (exactly spelling and capitalization)?

Is your Game view's sound muted?
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Adding sound to dialogues

Post by Eldritch_Horror »

Yes. The following:
Attachments
Screenshot 2024-04-17 155406.png
Screenshot 2024-04-17 155406.png (33.69 KiB) Viewed 88 times
User avatar
Tony Li
Posts: 20656
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding sound to dialogues

Post by Tony Li »

Those aren't related to audio, but you can clear them up by inspecting your dialogue UI and quest log window (if you use one) and unticking the "Add EVent System If Needed" checkboxes on them.

Since you're using Adventure Creator, make sure Adventure Creator hasn't muted the audio.

Also, turn on logging so you can see the details of the AudioWait() sequencer commands when they run:

Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Adding sound to dialogues

Post by Eldritch_Horror »

I've created a video here:
https://www.dropbox.com/scl/fi/w5qn37bb ... 3np7q&dl=0

Game audio is on.
Last edited by Eldritch_Horror on Wed Apr 17, 2024 5:16 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 20656
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding sound to dialogues

Post by Tony Li »

Please turn on logging and review the Console window.

I see a "Cannot play disabled audio source" message at the bottom of the window. That's probably the reason why you don't hear audio.
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Adding sound to dialogues

Post by Eldritch_Horror »

From console:
Attachments
Screenshot 2024-04-17 162352.png
Screenshot 2024-04-17 162352.png (157.33 KiB) Viewed 79 times
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Adding sound to dialogues

Post by Eldritch_Horror »

I have solved the issue. I was referencing the prefab gameObject instead of the gameObject that was actually in the scene! Thank you for your help and support, Tony.
User avatar
Tony Li
Posts: 20656
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding sound to dialogues

Post by Tony Li »

Good job! I'm glad you found the issue and were able to fix it.
Post Reply