Beispiel #1
0
        public AudioCategory GetCategory(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            ushort category = FAudio.FACTAudioEngine_GetCategory(
                handle,
                name
                );

            if (category == FAudio.FACTCATEGORY_INVALID)
            {
                throw new InvalidOperationException(
                          "Invalid category name!"
                          );
            }

            return(new AudioCategory(this, category, name));
        }