Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

given array of bytes #1

Open
MohammedElotol opened this issue Dec 7, 2016 · 7 comments
Open

given array of bytes #1

MohammedElotol opened this issue Dec 7, 2016 · 7 comments

Comments

@MohammedElotol
Copy link

MohammedElotol commented Dec 7, 2016

Hi
Thank you for the great library.
I wonder where I can find the required array of bytes that I must pass to setRawData(), if I want to play a mp3 file. should I get file input stream and then get the byte array? I tried to do that but the created waves were not Compatible with the voice.

@alxrm alxrm added the bug label Dec 7, 2016
@alxrm
Copy link
Owner

alxrm commented Dec 7, 2016

Yeah, just saw this with large mp3 file, trying to fix it right now.

Thanks for the note and sorry for it not working properly

@MohammedElotol
Copy link
Author

I noticed that if the items of the array are less than or equal the wave view capacity it will be drawn correctly, otherwise it won't.

@alxrm
Copy link
Owner

alxrm commented Dec 7, 2016

Probably I've fixed this, I'm not sure, gonna push the update in an hour

@alxrm
Copy link
Owner

alxrm commented Dec 7, 2016

Updated the release, you might want to check it out

@MohammedElotol
Copy link
Author

MohammedElotol commented Dec 8, 2016

Hi Alxrm, and thank you for your help.
I tried 0.7 version, but it is still not precise.
The byte array that I set as an argument is containing at least 2000 item for each second, each item has a value from -128 to 128.
should I pass it as it is? or should I minimize the number of bytes per second somehow?

please see below screenshots, the first one from the recorder, and the second is that recording viewed by our library.
https://drive.google.com/open?id=0B_2cJHPZixL0MmlPZTVCMjdUVlE
https://drive.google.com/open?id=0B_2cJHPZixL0OXJxZmRPSUY1VzQ

@alxrm
Copy link
Owner

alxrm commented Dec 8, 2016

If the precision is something you're searching for, you might want to check out
another solution, which handles every sound format and tries to give you the most precise results.

Hope it helps.

@alxrm
Copy link
Owner

alxrm commented Dec 8, 2016

Yet still want to find the solution. So I leave this issue opened.

Thanks for the screenshots, they might be very helpful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants