本文整理匯總了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>();
}
示例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>();
}