Monthly Archives: January 2009

Automatically Fill a ComboBox with an Enum

This is a really nice little feature. If we have an enumerator, say: public enum MyEnumerator { Oranges, Apples, Hedgehogs, Laptops, Budgies, Other } Having a form with a ComboBox called comboBox1, put this in the constructor/form load etc: this.comboBox1.DataSource … Continue reading

Posted in .net, C#, Programming | Tagged , , , , , | 1 Comment

Things I can’t code without in Visual Studio

Here’s a quick list of essential plug-ins and tools for Visual Studio. All of them are free, and this is mainly so the next time I reinstall windows I won’t spend ages trying to remember what that thing I use … Continue reading

Posted in .net, Programming | Tagged , , , , | 1 Comment

The DirectSound Capture Buffer

A CaptureBuffer is a buffer of a specified length that reads audio from a Capture object which represents the capture (or input) device, into a one-dimensional array of bytes with a specified WaveFormat.

Posted in .net, DirectSound, Programming | Tagged , , , , , | 4 Comments

An Explanation of Output Buffers in DirectSound

A DirectSound Buffer is a one-dimensional array of bytes which represent sound waves in a digital form. The data is laid out in a specified Microsoft.DirectX.DirectSound.WaveFormat which specifies the format type, number of channels, number of samples per second and … Continue reading

Posted in .net, DirectSound, Programming | Tagged , , , , | Leave a comment