-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are strings needed? #19
Comments
I have replaced std::string with char* and am getting "NaN" returned from processSample. |
Hello! In general, strings are not required for this library, but they are quite handy when working with the polymorphic API. That said, maybe we could add a compile option to optionally remove the string dependency? In your case, I might suggest explicitly using the templated API, by including If you're getting |
Thanks for getting back to me! |
Belay that, here it is :) |
An now this error? Please advise! |
Ok I see that it is wdf_base.h that has the string definition, and it is including #include "../wdft/wdft.h" already. |
Oh yeah, I guess there's a couple of global definitions in the main header file, that would be missing if you just include one of the internals. In that case, probably the simplest thing to do will be to copy the main header file, and remove the |
I am going down that rabbit hole now and not having much joy. I will keep you posted. |
I'm not sure I understand the question. As I mentioned earlier, the templated API does not depend on the Would it be possible to share a little bit more about the build system that you're working, or maybe a small example project? I haven't worked with Reason before, so there may be additional relevant information that I'm not aware of. Assuming that your build system has the |
Good point, I should step back and explain a bit better. One thing it does not allow is dynamic memory allocation, but I have not really seen any in your library so far so I dont think that will be an issue. When I include "chowdsp_wdf/chowdsp_wdf.h" with no changes I get the following error: I comment it out and it resolves with VS2019, then I get this error: I assumed it was because string could still not be found BUT looking closer now I think this maybe something else? Murf. |
Okay, that's good to know. There' shouldn't be anything problematic about building the library with VS2019, since the library is tested regularly in that build environment.
This error basically means that You're correct that the In any case, the method I had suggested above (making a modified copy of the main header), should be the simplest solution. |
I dont quite understand this sorry, there is only one copy of wdft.h in the whole library, this implies I am changing the main header file to look at a different version of this file? |
Right, so a couple things:
This Stack Overflow thread has some more information on different types of file includes. It's difficult to debug the specifics of your situation without knowing a bit more about how your source tree and other dependencies are set up. |
Cool makes sense.
I hope this structure looks ok in Text |
Ok I think I got the change from wdf to wdft happening, with just these 2 header file changes (I no longer get a complaint about strings)
I am still getting NaN all the time, and it is an unchanged copy of PassiveLPF.h that I am using. |
Hi, I am trying to use this header library for Reason and it does not cater for strings.
Is the use of strings crucial to your implementation or just a nicety?
The text was updated successfully, but these errors were encountered: