V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
aluo1
V2EX  ›  Windows

C# project 如何添加背景音乐

  •  
  •   aluo1 · Oct 21, 2015 · 2912 views
    This topic created in 3843 days ago, the information mentioned may be changed or developed.

    最近在用 Visual Studio 用 C# 写一个 surface 的 project ,发现不知道如何在 C# 中添加背景音乐。试过很多 library, 包括 SharpDX, 都不可用。
    SharpDX 的接近可用,可是要求打开 file, 作为 C# 小白的我不知道怎么打开一个文件。。。
    求各位 V 友支招
    谢谢 :-)

    5 replies    2015-10-21 18:54:56 +08:00
    dong3580
        1
    dong3580  
       Oct 21, 2015   ❤️ 1
    我记得貌似有个 media player 控件
    aluo1
        2
    aluo1  
    OP
       Oct 21, 2015
    @dong3580 我现在查看 VS, 里面只有一个 Media Element. 然而并不知道怎么用。。。
    longaiwp
        3
    longaiwp  
       Oct 21, 2015   ❤️ 1
    @aluo1 看 MSDN ,那个 Media Element 可以大致实现这个功能(要学会百度)
    aluo1
        4
    aluo1  
    OP
       Oct 21, 2015
    @longaiwp 刚刚 google 了,谢谢你,已经能够使用了
    aluo1
        5
    aluo1  
    OP
       Oct 21, 2015
    @dong3580 Media Element 可以使用了,谢谢你
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5325 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 07:11 · PVG 15:11 · LAX 00:11 · JFK 03:11
    ♥ Do have faith in what you're doing.