aluo1
V2EX  ›  Windows

C# project 如何添加背景音乐

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