Skip to content
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

Exporting excite as a function instead of a binary #11

Merged
merged 4 commits into from
Oct 23, 2015

Conversation

jfsantos
Copy link
Contributor

This PR adds excite as a function. I'll be sending a separate PR to pysptk with the Cython part of the code.

@r9y9
Copy link
Owner

r9y9 commented Oct 23, 2015

Looks good!

A request: Can you rename excite.c to _excite.c? Source files that start with _ are automatically collected by waf (see bin/wscript#L20-L22) and compiled into the SPTK shared library (libSPTK.{so, dylib, dll}). This will enable other languages (e.g. Julia) to call excite function from the shared library.

for (;;) {
if (freadf(&p2, sizeof(p2), 1, fp) != 1)
return (0);
for (int fn = 1; fn < n; fn++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this line may cause compilation error on MSVC on windows. While I was working on #8, I found MSVC on AppVeyor throws error for C89-imcompatible codes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I forgot MSVC still does not have support for C99 (they're only 16 years late!). This is now fixed.

r9y9 added a commit that referenced this pull request Oct 23, 2015
Exporting excite as a function instead of a binary
@r9y9 r9y9 merged commit 06318f9 into r9y9:master Oct 23, 2015
@r9y9
Copy link
Owner

r9y9 commented Oct 23, 2015

Thanks!

r9y9 added a commit to r9y9/SPTK.jl that referenced this pull request Oct 27, 2015
@r9y9 r9y9 mentioned this pull request Oct 27, 2015
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants