How to use IAudioEndpoint and connect it to Audio Engine?

mkckr0 0 Reputation points
2024-03-18T13:33:22.4633333+00:00

I want to create a new audio endpoint in user mode. So the audio player can work normally without a physical sound card. I find the API https://learn.microsoft.com/en-us/windows/win32/termserv/terminal-services-audioendpoint-api-reference.

As the doc says:

An audio endpoint represents an audio device, audio API, or any other audio source or sink, and is used to send data to or consume data from the audio engine. An audio endpoint must be connected to the audio engine through a connection, and each connection can have only one endpoint connected to it. After an endpoint is registered, the audio engine attaches the endpoint to the connection.

I don't know how to use the IAudioEndpoint and connect it to audio engine.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,464 questions
{count} votes

1 answer

Sort by: Most helpful
  1. mkckr0 0 Reputation points
    2024-05-07T13:39:57.14+00:00

    A client of WASAPI passes data to an endpoint device through an endpoint buffer. System software and hardware components manage the movement of data from the endpoint buffer to the endpoint device in a manner that is largely transparent to the client. Furthermore, for an endpoint device that plugs into an audio adapter with jack-presence detection, the client can create an endpoint buffer only for an endpoint device that is physically present. For more information about jack-presence detection, see Audio Endpoint Devices.

    The client can create an endpoint buffer only for an endpoint device that is physically present.

    0 comments No comments