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

generate produces silence on Android #1

Closed
ghost opened this issue Jul 1, 2014 · 6 comments
Closed

generate produces silence on Android #1

ghost opened this issue Jul 1, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 1, 2014

I compiled this for Android, init and load works as expected but when i try to generate sound, i only get buffer full of zeroes. I followed the guideline how to use this lib.

@Deltafire
Copy link
Owner

Could you provide some more information which could be useful for discovering the cause? The library has been tested on Linux, OSX and Amiga without issues.

@ghost
Copy link
Author

ghost commented Jul 6, 2014

Sure, this is what i do:

LOAD:
result = player.init(44100);
result = player.load(filename);
GET_DATA:
player.generate(out, size);

the buffer out has always zeroes, no idea what i'm doing wrong. Do you need the android.mk makefile? I'm not sure what other information i could provide, let me know if you need something.
Since it has been tested with Linux, it should work on Android also.

@Deltafire
Copy link
Owner

I think you need the player.load() call before the player.init() - can you try swapping them around?

@ghost
Copy link
Author

ghost commented Jul 6, 2014

tried, same deal :(

@ghost ghost closed this as completed Jul 11, 2014
@Deltafire
Copy link
Owner

Did you figure out why it wasn't working?

@ghost
Copy link
Author

ghost commented Jul 11, 2014

nope :( I tried checking the code from various places and couldn't figure out what causes the silence. Odd case.

This issue was closed.
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

No branches or pull requests

1 participant