Exemplo n.º 1
0
        public bool IsPlaying(string streamName)
        {
            SoundStreamFade stream = GetStream(streamName);

            if (stream == null)
            {
                return(false);
            }
            return(stream.IsPlaying());
        }
Exemplo n.º 2
0
        SoundStream PlaySub(string streamName, AudioClip clip, float volume, bool isLoop, bool isStreaming, float fadeInTime, float fadeOutTime, bool isReplay, Func <float> callbackMasterVolume)
        {
            SoundStreamFade stream = GetStreamAndCreateIfMissing(streamName);

            if (isReplay || !stream.IsPlaying(clip))
            {
                return(stream.Play(clip, fadeInTime, fadeOutTime, volume, isLoop, isStreaming, callbackMasterVolume));
            }
            else
            {
                return(stream.Current);
            }
        }
        public bool IsPlaying(string streamName)
        {
            SoundStreamFade stream = GetStreamAndCreateIfMissing(streamName);

            return(stream.IsPlaying());
        }