MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / LoadSoundDevicesInCombobox

Function LoadSoundDevicesInCombobox

TombEngine/Specific/configuration.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void LoadSoundDevicesInCombobox(HWND handle)
45{
46 HWND cbHandle = GetDlgItem(handle, IDC_SNDADAPTER);
47
48 SendMessageA(cbHandle, CB_RESETCONTENT, 0, 0);
49
50 // Get all audio devices, including the default one
51 BASS_DEVICEINFO info;
52 int i = 1;
53 while (BASS_GetDeviceInfo(i, &info))
54 {
55 SendMessageA(cbHandle, CB_ADDSTRING, 0, (LPARAM)info.name);
56 i++;
57 }
58
59 SendMessageA(cbHandle, CB_SETCURSEL, 0, 0);
60}
61
62BOOL CALLBACK DialogProc(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam)
63{

Callers 1

DialogProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected