Can not play a disabled audio source warning

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rose
Posts: 17
Joined: Sat Feb 19, 2022 12:29 pm

Can not play a disabled audio source warning

Post by Rose »

Hi! I've spent the last few days getting a conversation set up after buying this last week. It's all going pretty smoothly so far and I'm super glad this system exists. I'm sure it's going to save me a lot of development time.

I've just added typing sound effects so there's "blarble" noises like in Undertale and Animal Crossing, I found a really helpful post on this forum about how to set it up and it's all working great!

There's only one little issue... I get a warning "Can not play a disabled audio source" when I'm going through the conversation as the play the game, even though it all works fine and there doesn't seem to be any issues.

I noticed that ticking the box for "Wait One Frame Before Starting" in the Unity UI Typewriter Effect fixed this and made the warning go away, Unfortunately, I can't keep that box ticked because it messes up how the dialogue boxes appear. When it's ticked, the timing is a bit off on them and shows the \,'s and \.'s sometimes. So I'm wondering if there's another way to fix this error. I've tried ticking other boxes under the Unity UI Typewriter Effect like Stop On Conversation End but the warning still pops up.
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can not play a disabled audio source warning

Post by Tony Li »

Hi,

I can't say for sure what's going on without getting more details, but the quickest solution might be this:

1. Add an Audio Source component to the main dialogue UI GameObject. (That's the one with the Standard Dialogue UI component.)

2. Inspect your subtitle panels' subtitle text GameObject(s). Assign the Audio Source from step #1 to the typewriter effect's Audio Source field.
Rose
Posts: 17
Joined: Sat Feb 19, 2022 12:29 pm

Re: Can not play a disabled audio source warning

Post by Rose »

This seems to have sorted the problem! The warning hasn't come up since. Thank you!! :)
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can not play a disabled audio source warning

Post by Tony Li »

Glad to help!
Post Reply