Jump to content
IGNORED

Help modifying MAKEWAV?


Glenn Jupp

Recommended Posts

As I mentioned in another thread, I'm trying to modify MAKEWAV to produce a much longer WAV file than is usual for it (about ten times longer in running time). I had hoped it would be an easy tweak. Lines 243 and 255 in MAKEWAV.C seem to be the key. I just need to raise the "80" in

if (parms->zeroBitLength > 80 || parms->zeroBitLength <1)

to 800 (I think, and the same change again a few lines later).

 

But I can't get it to compile. Things keep choking on the undefined symbols "myGlob" and "delq" so I guess I'm not using the same compiler and setup as Bob Colbert did.

 

Any suggestions or guidance? Please?

Link to comment
Share on other sites

As I mentioned in another thread, I'm trying to modify MAKEWAV to produce a much longer WAV file than is usual for it (about ten times longer in running time). I had hoped it would be an easy tweak. Lines 243 and 255 in MAKEWAV.C seem to be the key. I just need to raise the "80" in
if (parms->zeroBitLength > 80 || parms->zeroBitLength <1)

to 800 (I think, and the same change again a few lines later).

But I can't get it to compile. Things keep choking on the undefined symbols "myGlob" and "delq" so I guess I'm not using the same compiler and setup as Bob Colbert did.

Any suggestions or guidance? Please?

 

I'm assuming that you are trying to compile the version 4.1 source on Bob Colberts page?

What compiler are you using? I just compiled it using gcc 4.3.3 (linux) and it works fine for me. It sounds like you are only compiling makewav.c. You need to compile all three files in the archive together - myGlob is defined in find.c and delq is defined in queue.c. Have a look at the supplied Makefile to see how this is done.

 

Chris

Link to comment
Share on other sites

I'm assuming that you are trying to compile the version 4.1 source on Bob Colberts page?

What compiler are you using? I just compiled it using gcc 4.3.3 (linux) and it works fine for me. It sounds like you are only compiling makewav.c. You need to compile all three files in the archive together - myGlob is defined in find.c and delq is defined in queue.c. Have a look at the supplied Makefile to see how this is done.

In reverse order...

 

Thanks for helping out a c-noob. That did the trick. I thought all that other stuff was already taken care of with the "includes." Yah, just MAKEWAV.C. I tried TCC 0.9.24 (win9X) to begin with because small is beautiful, especially when you're still on dialup :) Yah, the 4.1 source, sorry I didn't specify.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...