none
如何使用DirectX调整音量? RRS feed

答案

  • 你好:

    欢迎来到MSDN中文论坛。

    请参考MSDN文档:Audio Video Playback

    根据里面的说明,你可以使用Video.Audio 属性返回一个Audio对象,通过Audio对象的Volume属性来调整音量大小。

    using Microsoft.DirectX.AudioVideoPlayback;
    public class MyVideoPlayer : System.Windows.Forms.Form
    {
        /* ... */
        private void OpenFile()
        {
            try
            {
                Video ourVideo = new Video("C:\\Example.avi");
                /* ... */
            }
        }
        /* ... */
    }
    

    try
    {
        Video.Audio.Volume = 100;
    }
    


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年10月29日 2:52
    版主