public static CustomProfile NewProfile( string name, AudioListenerFormat listenerFormat, ProcessPriorityClass appPriority ) { var profile = new CustomProfile(); profile.Name = name; profile.ListenerFormat = listenerFormat; profile.AppPriority = appPriority; UpdateProfile(profile); return(profile); }