Sound & Music

Moderators: Sephiroth
Number of threads: 611
Number of posts: 1220

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem with 16 bit recording algorithm Posted by progcomm on 22 Aug 2005 at 9:49 PM
I have made a recoder via waveIn (mmsystem.h) using Dev C++ compiler
it works for 8 sampling bits, but when I employed 16 sample bits, it fails.
I change waveformatex structure to accept 16 sample bits, and changed the buffer size by twice of that 8 bits.
The output is pure 0x00;

Does it employ Big Endian or Little Endian, based on what I know about wav file, it is employing little endian.

Thanks.
Report
Re: Problem with 16 bit recording algorithm Posted by katman on 10 Sept 2005 at 11:06 AM
Yes, little Endian.

: I have made a recoder via waveIn (mmsystem.h) using Dev C++ compiler
: it works for 8 sampling bits, but when I employed 16 sample bits, it fails.
: I change waveformatex structure to accept 16 sample bits, and changed the buffer size by twice of that 8 bits.
: The output is pure 0x00;
:
: Does it employ Big Endian or Little Endian, based on what I know about wav file, it is employing little endian.
:
: Thanks.
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.