C#获取wav文件bit的问题

djw1234561999 2012-09-20 06:36:49
现在接到这样的需求:请上传Wav格式 音质为16bit 位速为128K的文件。

如何判断音质为16bit?
...全文
99 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
threenewbee 2012-09-20
  • 打赏
  • 举报
回复
和了解不了解无关,关键是要稍微动点脑子。
threenewbee 2012-09-20
  • 打赏
  • 举报
回复
文章下面不是举了一个例子么。你可以使用UltraEdit或者其它的十六进制编辑器,对照着,找几个wav文件自己观察下,就明白了。
djw1234561999 2012-09-20
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

读取文件开头第34字节
34 2 BitsPerSample 8 bits = 8, 16 bits = 16, etc.
[/Quote]

能说具体点吗?我对这个格式都不了解!
djw1234561999 2012-09-20
  • 打赏
  • 举报
回复
读取文件的第34个字节为2的话就是16bit的文件?
threenewbee 2012-09-20
  • 打赏
  • 举报
回复
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

读取文件开头第34字节
34 2 BitsPerSample 8 bits = 8, 16 bits = 16, etc.
VisioForge Video Edit SDK major features include: Input formats video formats - AVI, MPEG-1/2, WMV, 3GP, QuickTime MOV, MPEG-4/H264 (AVC), any other if you have corresponding decoder audio formats - WAV, MP3, OGG, WMA, AAC, any other if you have corresponding decoder images - BMP, PNG, GIF, JPEG, TIFF Add a lot of audio/video files and images Adding various parts of video and audio files to the timeline Video processing and effects image and graphic overlays text overlay video transparency brightness, contrast, saturation, hue, etc. deinterlace denoise pan / zoom resize to any resolution chroma-key 3-rd party DirectShow filters support Transition effects between tracks (above 80, same as in Windows Movie Maker) Motion detection Video encryption Encoding parameters video size frame rate video and audio codecs video and audio bit rate other Audio processing and effects volume booster equalizer 3D-bass system other effects Output video formats: AVI WMV (using built-in or external profiles or specifying all parameters directly) MKV (Matroska) WebM MPEG 1/2 (VCD/SVCD/DVD), MPEG-4 (iPod/iPhone), FLV, using FFMPEG any other formats via third-party filters (e.g. MPEG1, MPEG2, MPEG4/H264, 3GP) MP4 H264 / AAC Output audio formats WAV (PCM or ACM codecs) OGG Vorbis MP3 (LAME) Windows Media Audio Development platforms: Visual Studio 2005 and later: Visual C#, Visual C++, Visual Basic .NET Delphi 6 / 7 / 2005 / 2006 / 2007 / 2009 / 2010 / XE / XE2 / XE3 / XE4 / XE5 / XE6 / XE7 / XE8 / 10 / 10.1 / 10.2 Visual Studio 6: Visual C++, Visual Basic 6 Borland C++ Builder 5 and later may be used with other ActiveX compatible applications like Microsoft Access, Word, Excel, FrontPage, Powerbuilder, etc. x86 and x64 versions System requirements Windows 10, Windows 8/8.1, Windows 7, Windows Vista, Windows XP, Windows Server 2003 and later .Net Framework 2.0 or later (for some demo applications) DirectX 9 or later Distribution rights Royalty-free distribution. Trial limitations Trial versi
VisioForge Video Capture SDK major features include: Preview Video capture to AVI (using audio/video codecs like MJPEG, DivX, XviD, x264) WMV (support of custom WMV profiles. You can configure streams to use variable bit rate encoding (VBR), uncompressed audio or video stream, video size, buffer size, frame rate, etc.) DV and MPEG from DV/HDV Camcorders and TV Tuners with internal MPEG Encoder (DirectCapture technology) DV (from any video capture device) MPEG-1/2/4 (including VCD/SVCD/DVD profiles) and FLV using FFMPEG wrapper WebM MP4 H264 / AAC custom output formats (using 3rd-party DirectShow filters) Audio capture to WAV (compressed or not) MP3 (using LAME) Frame capture to Bitmap class, BMP, JPEG and PNG files Video processing and effects graphic overlay text overlay video transparency brightness, contrast, saturation, hue, etc. deinterlace denoise pan / zoom resize to any resolution chroma-key 3-rd party DirectShow filters support Audio processing and effects volume booster equalizer 3D-bass system TV Tuning TV channels selecting video formats selecting input selection (TV-Tuner, FM-Tuner, S-Video, etc.) TV frequency overrides auto-tuning Video capture device control video input (crossbar interface) video format frame rate supports video cards with several inputs camera control (brightness, saturation, etc.) Network streaming in WMV format to other media servers and devices using virtual camera/audio source Motion detection Closed captions support Custom interfaces support OSD (On-Screen Display) PIP (Picture-In-Picture) Video encryption Screen capture Virtual Camera output Multiply output screens support Supported input devices: DV and HDV MPEG-2 camcorders USB web-cameras and other capture devices PCI capture cards TV Tuners (with and without internal MPEG Encoder) JPEG/MJPEG, MPEG-4 and H.264 HTTP / RTSP / RTMP IP cameras / servers, HD format supported Audio capture devices and sound cards Development platforms: Visual Studio 2005 and later: Visual C#, Visu

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧