Exemplo n.º 1
0
        private static void DumpInterface(SoundInterface soundInterface, InterfaceInfo info, int number)
        {
            Console.WriteLine("\t#{0} [{1}] ----------", number, info.Name);
            Console.WriteLine("\tDelay: {0} ms", soundInterface.Delay);
            Console.WriteLine("\tLowLevelAPI: {0}support", soundInterface.IsSupportingLowLevelApi ? "" : "not ");
            Console.WriteLine("\tChip Count: {0}", soundInterface.SoundChipCount);

            var chipCount = soundInterface.SoundChipCount;

            for (var i = 0; i < chipCount; i++)
            {
                using (var chip = soundInterface.GetSoundChip(i))
                    DumpChip(chip, i);
            }

            Console.WriteLine();
        }
Exemplo n.º 2
0
        static void DumpInterface(SoundInterface soundInterface, InterfaceInfo info, int number)
        {
            Console.WriteLine("\t#{0} [{1}] ----------", number, info.Name);
            Console.WriteLine("\tDelay: {0} ms", soundInterface.Delay);
            Console.WriteLine("\tLowLevelAPI: {0}support", soundInterface.IsSupportingLowLevelApi ? "" : "not ");
            Console.WriteLine("\tChip Count: {0}", soundInterface.SoundChipCount);

            var chipCount = soundInterface.SoundChipCount;

            for (int i = 0; i < chipCount; i++)
            {
                using (var chip = soundInterface.GetSoundChip(i))
                    DumpChip(chip, i);
            }

            Console.WriteLine();
        }