DSPRelated.com
Forums

32 bit integer WAV file writer?

Started by Mikial Chubarov September 24, 2007
Richard Dobson wrote:

   ...

> To borrow the subject of another thread: what has happened to this > group? I thought people here believed in technical correctness, > answering questions, lets hear it for engineers, etc. So why all this > stuff? ...
Some very knowledgeable people value sarcasm and look-how-smart-I-am (wink, wink) comments more. Think of it as the left-handed-monkey-wrench or let's-amuse-ourselves-by-mocking-newbies syndrome. I was never fond of those initiation rituals, from either direction. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Vladimir Vassilevsky wrote:

   ...

> Stupid questions deserve the dumb answers. The invasion of the dolts is > what is killing the group.
We've always had our share of dolts. Stupid questions deserve honest (if painful) statements about why they make no sense. Dumb answers drag the group down, along with two faults I'm guilty of: insufficient snipping, and changing the subject without changing the subject line. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Vladimir Vassilevsky wrote:
> [snip] > > Stupid questions deserve the dumb answers. The invasion of the dolts is > what is killing the group. >
*NO* _your_ 'answers' are sample of what is wrong! *YOU* fail to distinguish between _pupils_ asking comp.dsp to do their homework and *STUDENTS* who innocently ask "dumb" questions out of innocent ignorance. Before replying, please study differences between/among definition/connotation of student/pupil. Otherwise will class you with ...

Richard Owlett wrote:

> > *YOU* fail to distinguish between _pupils_ asking comp.dsp to do their > homework and *STUDENTS* who innocently ask "dumb" questions out of > innocent ignorance.
There is no difference. Ignorance is always ignorance and demonstrating ignorance is equal to stupidity. Worthwhile folks are trying to sort out their problems themself. Have you seen Avins, or Wescott, or RBJ, or Lyons, or Andor, or Alnor or whoever asking stupid questions?
> Before replying, please study differences between/among > definition/connotation of student/pupil. > Otherwise will class you with ...
My firm belief is the best way to learn how to swim is to be thrown out of the boat. VLV
Vladimir Vassilevsky wrote:

> > > Richard Owlett wrote: > >> >> *YOU* fail to distinguish between _pupils_ asking comp.dsp to do their >> homework and *STUDENTS* who innocently ask "dumb" questions out of >> innocent ignorance. > > > There is no difference. Ignorance is always ignorance and demonstrating > ignorance is equal to stupidity. Worthwhile folks are trying to sort > out their problems themself. Have you seen Avins, or Wescott, or RBJ, or > Lyons, or Andor, or Alnor or whoever asking stupid questions? > >> Before replying, please study differences between/among >> definition/connotation of student/pupil. >> Otherwise will class you with ... > > > My firm belief is the best way to learn how to swim is to be thrown out > of the boat. > > > VLV
Suspect you are _pupil_ not *STUDENT* Can you prove otherwise? I've demonstrated *IGNORANCE* BUT are you a 'student'? [I DOUBT IT]

Richard Owlett wrote:


> > Suspect you are _pupil_ not *STUDENT* > > Can you prove otherwise? > > I've demonstrated *IGNORANCE* > BUT are you a 'student'? > [I DOUBT IT]
Would you mind if I add you to the plonk file? VLV
Vladimir Vassilevsky <antispam_bogus@hotmail.com> writes:
> [...] > My firm belief is the best way to learn how to swim is to be thrown > out of the boat.
I would say you first give a few lessons, THEN throw them out of the boat. And tell them ahead of time this is what is going to happen - that way they'll pay more attention if they're not stupid. -- % Randy Yates % "How's life on earth? %% Fuquay-Varina, NC % ... What is it worth?" %%% 919-577-9882 % 'Mission (A World Record)', %%%% <yates@ieee.org> % *A New World Record*, ELO http://www.digitalsignallabs.com
Vladimir Vassilevsky wrote:

> ... Have you seen Avins, or Wescott, or RBJ, or > Lyons, or Andor, or Alnor or whoever asking stupid questions?
Vladimir, I'm pleased that you don't think my questions stupid. (I know that some of my answers are!) You may also have noticed that I often trouble to answer questions that you think are stupid, or at least trying to explain the question's flaws. "Are we there yet" coming from the back seat is a stupid question when traveling down the road at speed. There are other circumstances that make the same question reasonable. I am often tempted to the same sarcasm that you do so well. Knowing that the momentary satisfaction I would derive from it comes at the expense of the group dynamic here, I usually refrain. Jerry -- Engineering is the art of making what you want from things you can get. &macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;
Vladimir Vassilevsky wrote:
>> Vladimir Vassilevsky wrote: >>> Here is the utterly lazy method for writing WAVs: >>> >>> 1. Create a wav with the required parameters in the standard Windows >>> Sound Recorder. >>> >>> 2. Cut the header off. If you don't want to know what is the size of >>> the header, ~100 bytes from the beginning of the file will do. >>> >>> 3. Attach that header to your file :)
[...]
> I have done it that way ~20 years ago. Surprisingly, it works just fine.
For a sufficiently small definition of "works just fine". WAV files have size markers at several places, and your method will only work for sufficiently simple^Wstupid WAV readers (for example those that simply do a seek(44) and read until EOF). Actually, Windows Media Player refuses to open WAV files I wrote although I think I conform to the specs. Didn't get around debugging that, though: I use them for temporary storage only, and Audacity, Sound Recorder and sox read them just fine :-) Stefan

Stefan Reuther wrote:

>>>Vladimir Vassilevsky wrote: >>>>Here is the utterly lazy method for writing WAVs: >>>>1. Create a wav with the required parameters in the standard Windows >>>>Sound Recorder. >>>>2. Cut the header off. If you don't want to know what is the size of >>>>the header, ~100 bytes from the beginning of the file will do. >>>>3. Attach that header to your file :) > > [...] > >>I have done it that way ~20 years ago. Surprisingly, it works just fine. > > > For a sufficiently small definition of "works just fine". WAV files have > size markers at several places, and your method will only work for > sufficiently simple^Wstupid WAV readers (for example those that simply > do a seek(44) and read until EOF). > > Actually, Windows Media Player refuses to open WAV files I wrote > although I think I conform to the specs. Didn't get around debugging > that, though: I use them for temporary storage only, and Audacity, Sound > Recorder and sox read them just fine :-)
It worked fine with the WMP and WinAmp too (although I would not bet about the latest versions). However you need to make sure that your file is not shorter then the original; it is OK if the file is longer. VLV