Click here to Skip to main content
15,891,529 members
Articles / Programming Languages / Visual Basic

Audio Library Part I - (Windows Mixer Control)

Rate me:
Please Sign up or sign in to vote.
4.52/5 (79 votes)
1 Oct 2006CPOL3 min read 609.2K   15.4K   163  
Library to control Windows Mixer from C#
//
//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
//  PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER 
//  REMAINS UNCHANGED.
//
//  Email:  gustavo_franco@hotmail.com
//
//  Copyright (C) 2005 Franco, Gustavo 
//
using System;

namespace WaveLib.AudioMixer
{
	[Author("Gustavo Franco")]
	public class MixerDetail
	{
		#region Variables Declaration
		private string	mName;
		private int		mDeviceId;
		private bool	mSupportWaveIn;
		private bool	mSupportWaveOut;
		#endregion

		#region Constructors
		public MixerDetail()
		{
			mName			= "";
			mDeviceId		= -1;
			mSupportWaveIn	= false;
			mSupportWaveOut = false;
		}
		#endregion

		#region Properties
		public string MixerName
		{
			get{return mName;}
			set{mName = value;}
		}

		public int DeviceId
		{
			get{return mDeviceId;}
			set{mDeviceId = value;}
		}

		public bool SupportWaveIn
		{
			get{return mSupportWaveIn;}
			set{mSupportWaveIn = value;}
		}

		public bool SupportWaveOut
		{
			get{return mSupportWaveOut;}
			set{mSupportWaveOut = value;}
		}
		#endregion

		#region Overrides
		public override string ToString()
		{
			//return mName + ":" + mDeviceId;
			return mName;
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
United States United States
I started with programming about 19 years ago as a teenager, from my old Commodore moving to PC/Server environment Windows/UNIX SQLServer/Oracle doing gwBasic, QBasic, Turbo Pascal, Assembler, Turbo C, BC, Summer87, Clipper, Fox, SQL, C/C++, Pro*C, VB3/5/6, Java, and today loving C#.

Currently working as SDE on Failover Clustering team for Microsoft.

Passion for most programming languages and my kids Aidan&Nadia.

Comments and Discussions