當前位置: 首頁>>代碼示例>>C#>>正文


C# AudioEngine.INTERNAL_initCue方法代碼示例

本文整理匯總了C#中Microsoft.Xna.Framework.Audio.AudioEngine.INTERNAL_initCue方法的典型用法代碼示例。如果您正苦於以下問題:C# AudioEngine.INTERNAL_initCue方法的具體用法?C# AudioEngine.INTERNAL_initCue怎麽用?C# AudioEngine.INTERNAL_initCue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Microsoft.Xna.Framework.Audio.AudioEngine的用法示例。


在下文中一共展示了AudioEngine.INTERNAL_initCue方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Cue

        internal Cue(
			AudioEngine audioEngine,
			List<string> waveBankNames,
			string name,
			CueData data,
			bool managed
		)
        {
            INTERNAL_baseEngine = audioEngine;

            Name = name;

            INTERNAL_data = data;
            foreach (XACTSound curSound in data.Sounds)
            {
                if (!curSound.HasLoadedTracks)
                {
                    curSound.LoadTracks(
                        INTERNAL_baseEngine,
                        waveBankNames
                    );
                }
            }

            INTERNAL_isManaged = managed;

            INTERNAL_category = INTERNAL_baseEngine.INTERNAL_initCue(
                this,
                data.Category
            );

            INTERNAL_userControlledPlaying = false;
            INTERNAL_isPositional = false;
            INTERNAL_queuedPlayback = false;
            INTERNAL_queuedPaused = false;

            INTERNAL_instancePool = new List<SoundEffectInstance>();
            INTERNAL_instanceVolumes = new List<float>();
            INTERNAL_instancePitches = new List<float>();
        }
開發者ID:khbecker,項目名稱:FNA,代碼行數:40,代碼來源:Cue.cs

示例2: Cue

		internal Cue(
			AudioEngine audioEngine,
			List<string> waveBankNames,
			string name,
			CueData data,
			bool managed
		) {
			INTERNAL_baseEngine = audioEngine;

			Name = name;

			INTERNAL_data = data;
			foreach (XACTSound curSound in data.Sounds)
			{
				if (!curSound.HasLoadedTracks)
				{
					curSound.LoadTracks(
						INTERNAL_baseEngine,
						waveBankNames
					);
				}
			}

			INTERNAL_isManaged = managed;

			INTERNAL_category = INTERNAL_baseEngine.INTERNAL_initCue(
				this,
				data.Category
			);

			eventVolume = 1.0f;
			eventPitch = 0.0f;

			INTERNAL_userControlledPlaying = false;
			INTERNAL_isPositional = false;

			INTERNAL_eventList = new List<XACTEvent>();
			INTERNAL_eventPlayed = new List<bool>();
			INTERNAL_eventLoops = new Dictionary<XACTEvent, int>();
			INTERNAL_waveEventSounds = new Dictionary<SoundEffectInstance, XACTEvent>();

			INTERNAL_timer =  new Stopwatch();

			INTERNAL_instancePool = new List<SoundEffectInstance>();
			INTERNAL_instanceVolumes = new List<float>();
			INTERNAL_instancePitches = new List<float>();

			INTERNAL_rpcTrackVolumes = new List<float>();
			INTERNAL_rpcTrackPitches = new List<float>();
		}
開發者ID:clarvalon,項目名稱:FNA,代碼行數:50,代碼來源:Cue.cs


注:本文中的Microsoft.Xna.Framework.Audio.AudioEngine.INTERNAL_initCue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。