[MPlayer-dev-eng] DirectSound (win32) audio output driver

Sascha Sommer saschasommer at freenet.de
Thu Apr 15 12:19:10 CEST 2004


>Don't worry, I won't. I think you do pass a HWND of a newly created
>(but not shown) window to SetCooperativeLevel in vo_directx though
>(created around line 980, used then in Directx_InitDirectDraw).

Ok.

>By the way, what should I call the new ao? ao_dsound or ao_directx?
>Or maybe even ao_directsound?

I'm not sure but directsound is imho to long while directx would be
consistent with vo_directx.

>One more thing: How does MPlayer exactly find out that the audio
>stream has reached its end? Does it wait until get_delay returns
>zero? Or does it use its own timer to find out when to stop?

Play() returns the number of bytes played. Afaik the end of the audio stream
is detected by the demuxer.

Sascha




More information about the MPlayer-dev-eng mailing list