[vlc-devel] [PATCH] Use waveOutSetVolume to set volume instead of pure software gain
Denis Charmet
typx at dinauz.org
Wed Jan 16 14:14:02 CET 2013
Le mercredi 16 janvier 2013 à 01:11:20, Rémi Denis-Courmont a écrit :
> What is the scope of an "instance"?
>
> If I understand MSDN correctly, if the application provide a audio session
> GUID, then the "instance" (or rather the session) can be persistent and
> shared across multiple processes. If the GUID is not specified, then the
> instance is probably not persistent. It is not clear to me.
>
If I understand correctly what I see here :
http://msdn.microsoft.com/en-us/library/windows/desktop/dd370796%28v=vs.85%29.aspx
When using waveOut and Directsound API, the scope of the instance is the
calling process. The sessions are not shared between processes.
> There are no event interfaces for DirectSound and WaveOut. MSDN specifies
> two ways to get the volume set by the mixer:
> - poll waveOutGetVolume(), or
> - use the Windows Audio Session interfaces.
>
> While playing, you could get reasonably fast response time by polling
> waveOutGetVolume() from the Play() callback. During pause or stop, either a
> polling timer or WASAPI is required.
>
Is it sane to use WASAPI inside legacy audio API based aout?
--
TypX
Le mauvais esprit est un art de vivre
More information about the vlc-devel
mailing list