如何在c#windows应用程序中添加多个音频文件 [英] how to add multiple audio files in c# windows application

查看:196
本文介绍了如何在c#windows应用程序中添加多个音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生/女士



如何在单个Windows应用程序中添加多个音频文件。你可以给我任何一个例子吗。

例如。我有10个问题我想读第一个问题如果我点击声音按钮然后开始声音然后点击下一个按钮然后下一个问题声音是开始这种类型.........

plz帮助我。

Dear Sir/Madam

How to add multiple audio files in single windows application. can u give me any example.
eg.I have take 10 Questions and I want to read 1 st question if i click to the sound button then start sound and after clicking next button then next question sound is started this type.........
plz help me.

推荐答案



您不需要在winform中添加多个音频文件。有两种方法可以执行此操作

1)将所有音频文件存储在根文件夹中。显示所有根文件夹中的音频文件名组合框按名称排序。用户选择你可以播放音频。

要播放音频文件,请查看此链接



使用C#播放.wav文件 [ ^ ]。

2)创建一个新表单作为上传音频文件,将音频文件上传到根文件夹,保存文件名在您的数据库中。

在您的音频播放表单中加载所有音频文件名称或选择所需的音频文件,在下一个按钮上逐个播放单击。
Hi,
You dont need to add Multiple Audio files in your winform.There is 2 way you can do this
1) Store all your Audio Files in your root folder.Display all the Root folder Audio file names in Combo box order by name .by user selection you can play the Audio.
To play the Audio file check this link

Playing .wav files using C#[^].
2) Create a new form as Upload Audio file,Upload Audio file to your root folder,Save the File name in your DB.
In your Audio Play form load all the Audio file name or select the needed Audio files,Play One by one on Next Button Click.


这篇关于如何在c#windows应用程序中添加多个音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆