Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Audio Library Part I - (Windows Mixer Control)

, 1 Oct 2006
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)

Share

About the Author

CastorTiu
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.

| Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 1 Oct 2006
Article Copyright 2005 by CastorTiu
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid