I have a simple block rotation app (basically a d3d11 Hello World!), but whenever I run it I can hear an audible noise.
I attempted to step through the code to see the call that makes the noise 'happen', but I wasn't able to find it in any of the D3Dinit.
This is the code I am using to initialize:
HRESULT hr = D3D11CreateDevice(
0, // default adapter
md3dDriverType,
0, // no software device
createDeviceFlags,
0, 0, // default feature level array
D3D11_SDK_VERSION,
&md3dDevice,
&featureLevel,
&md3dImmediateContext);
Here's where I attach the interface and create the swap buffer (note HR() is just a macro that will display HRESULTS if debug is on)
IDXGIDevice* dxgiDevice = 0;
HR(md3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void**)&dxgiDevice));
IDXGIAdapter* dxgiAdapter = 0;
HR(dxgiDevice->GetParent(__uuidof(IDXGIAdapter), (void**)&dxgiAdapter));
IDXGIFactory* dxgiFactory = 0;
HR(dxgiAdapter->GetParent(__uuidof(IDXGIFactory), (void**)&dxgiFactory));
HR(dxgiFactory->CreateSwapChain(md3dDevice, &sd, &mSwapChain));
Does anyone know what would cause this audible noise to happen?