public Cue GetCue(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } ushort cue = FAudio.FACTSoundBank_GetCueIndex( handle, name ); if (cue == FAudio.FACTINDEX_INVALID) { throw new InvalidOperationException( "Invalid cue name!" ); } IntPtr result; FAudio.FACTSoundBank_Prepare( handle, cue, 0, 0, out result ); return(new Cue(result, name, this)); }