[Stk] wave playback error
Ge Wang
gewang@CS.Princeton.EDU
Mon, 11 Apr 2005 01:14:29 -0400 (EDT)
Hi Conor,
Did you enable the __LITTLE_ENDIAN__ flag when compiling the lib? If you
also compiled any STK files as part of your sineosc project, you will also
need to set the flag for the sineosc project as well. Without this
flag, file I/O operations may assume big endian byte ordering, which
can make the header appear corrupt. This may or may not solve the
problem, it is good starting point to track down the problem.
Best,
Ge!
On Sat, 9 Apr 2005, Conor J Curran wrote:
> Hi,
> I cannot play back the resultant wav file from the sineOsc.cpp in the
> tutorial online.
> I am using sinewave.raw.
> Initially I had some difficulty building but finally got my project to
> build....Compiled the stk library into a lib separately and linked against
> it in my sineosc project....
> compiles and runs without any warnings
> the resultant hellosine.wav is dumped out with out a problem.
> When i try and play the wav in any player it tells the file is corrupted.
> Any ideas as to what the problem might be? My wave players work fine.
>
> br,
> Conor
>
>
>
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>