Waitrud Weber’s blog

things and reminders for memories

sound: windows-make: audio end-points.

They call the list of something kind of devices "Endpoints".

*

- - - - - - - -
- HRESULT EnumAudioEndpoints(
  [in]  EDataFlow           dataFlow,
  [in]  DWORD               dwStateMask,
  [out] IMMDeviceCollection **ppDevices
);
- - - - - -
- hr = pDevEnum->EnumAudioEndpoints(
                   eRender, DEVICE_STATE_ACTIVE,
                   &pEndpoints);
- - - - - -
- typedef enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001 {
  eRender = 0,
  eCapture,
  eAll,
  EDataFlow_enum_count
} EDataFlow;
- - - - - -
- IMMDeviceEnumerator::GetDefaultAudioEndpoint - - - - - -
- IMMDeviceEnumerator (mmdeviceapi.h) - Win32 apps | Microsoft Learn - - - - - -

 

*
You shouldn't think of being able to compile the microsoft minor includion.
Open the source code, which is the developper any starts.
Data structure is different only, from 64bit Windows.

*Download

- Very thanks to: - -
-

includion:
propkeydef.h
winapifamily.h
propsys.h
mmdeviceapi.h
structuredquerycondition.h
propidl.h
shtypes.h

- -
-

Mmdeviceapi.h Errors: Download and Troubleshoot

www.exefiles.com

- -
- - - -
- - - -


*

- - - - - - - -
1 - 1-1. windows.h attached program device open:
1-2. send message like a device name "sound card 01".
[1],[2],[3] - - - -
2 - 2-1. 
2-2. send message like a device name "sound card 01". 
2-3. consider fopen function.
- - - - -
3 - 3-1. read a binary *.o on 1-2 for putting the way to 2-1.
3-2. 
- - - - -
4 - 4-1. search and Find a device name connected to personal computer on windows programming.
4-2. " "
4-3. "Microsoft "
- - - - -
5 - 5-1. Open a devise number if you know it. [1],[2] - - - -


*DEFINE_GUID

- - - - - - - -
[1]

.\winmain_001.cpp  File modified time Mon Apr 10 12:49:56 2023

...

111 :#define CX_MARGIN    12 
112 :
113 :DEFINE_GUID(IID_IMMDeviceEnumerator, 0xa95664d2, 0x9614, 0x4f35, 0xa7,0x46, 0xde,0x8d,0xb6,0x36,0x17,0xe6);
114 :
115 : typedef struct tagLABELBOX {  // box 
116 :    RECT rcText;    // coordinates of rectangle containing text 
117 :    BOOL fSelected; // TRUE if the label is selected 

...

*

We can use macro DEFINE_GUID in migw compilation.

- - - - - -
[2]

 

usefulreports.webnode.jp

*
We can count set number asets as "11".
They are very good at "C++".
.Net Frame work Property is cast of class.

- - - - - -
[3]

Sounds device id has changed so many times and we can hear that sounds well on windows. But that includes "mmdeviceapi.h".

souds device id:
msg_buffer m_waveout device is |10182672|. -> |9B6010|
msg_buffer m_waveout device is |9271320|.  -> |8D7818|
msg_buffer m_waveout device is |8097776|.  -> |7B8FF0|

- - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -

 

* All Cpus are type of x86.

- 32(bit) OS 64(bit) OS - - -
x86 compilation (debug 32) - - - - -
renamed x64 - (debug 64) - - - - -
Program Files (x86) v - - - -
Program Files - Most but Not all - - -
- - - - - -
- - - - - -
- - - - - -