Original Post
Hi, I have some problems with Buffer3D. A time ago I have used directsound with no problem then I become cruious about 3d support(and where the problems begin). But then I encounter with an exception, I look around but can t see the problem. here is the portion code portion responsible from this problem :) I am using vs.net2003, dx9c and my sound card is SBLive 5.1. Thanks in advance...
Buffer m_soundBuffer;
Buffer3D m_3dSoundBuffer;
..
..
BufferDescription desc = new BufferDescription();
desc.Control3D = true;
desc.GlobalFocus = true;
// Below line is the cause of exception which says "Value does not fall within the expected range"
m_soundBuffer = new Buffer(i_name, desc, i_sound.Device);
m_3dSoundBuffer = new Buffer3D(m_soundBuffer);
m_3dSoundBuffer.Mode = Mode3D.Normal;