处理保存到文本文件中的样本后创建一个wav文件 [英] Creating a wav file after processing the samples saved into textfile

查看:127
本文介绍了处理保存到文本文件中的样本后创建一个wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Vb.net中开发一个应用程序,其中使用16位单声道wav文件,并且使用两个按钮. 第一个按钮用于读取wav文件(包括其标题值和样本).标头值在文本框(我已放置在窗体上)中读取,而样本值(以整数形式分别为正值和负值)写入文本文件中.基本上,我的Textfile用作wav示例的数据库. 第二个按钮用于编写一个新的wav文件,该文件将与原始文件相同(因为在这一点上,我尚未处理样本值).
问题是我没有得到如何为第二个按钮编写代码的方法.任何帮助或建议,将不胜感激.在此先感谢您.

I am developing an application in Vb.net in which I take a 16-bit mono wav file and I am using two buttons. The first button is for reading the wav file (including its header values and samples). The header values are being read in text-boxes (that I have placed on my form) and the sample values are being written (in their integer form as positive and negative values) in a textfile. Basically my Textfile works as a database for wav samples. The second button is for writing a new wav file, which will be the same as original (since, at this point I am not processing the sample values).
The problem is that I am not getting how to write the code for my second button. Any help or suggestions would be most appreciated. Thanks in advance.

推荐答案

您在此文章中拥有所需的一切:
You have everything you need in this artice: Concatenating Wave Files Using C# 2005[^]. You just have to fill the stream with your sample data from the text file instead.


这篇关于处理保存到文本文件中的样本后创建一个wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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