Processing through sample buffer with vlcj
Posted: 30 Jun 2014 13:28
Hi,
i am working on a modern jukebox like application.
When it came to playing audio i was excited that there is a java wrapper for libvlc, since i am using GWT as base for the application.
However, now the application has some state, where beatmatching is a relevant topic.
After reading very much literature and working through lots of examples of BPM Detection, i finaly build some BPM Detection api, which is the base for further work.
I have tested it with the java wave file reader, and it works pretty well.
Well, now i have got the problem, that my BPM Detection needs to be filled with samples for processing, not only supporting wave.
So now my problem, how do i get all samples of a song with vlcj?
Is there any bufferarray? The samples should be idealy in floats, though other type is ok.
Could someone send me some example, because i have no idea where to find some documation about this.
Also my c++ knowledge is not very good, though i understand it somehow .
The best solution would be an Array of Floats with all samples in there, the song contains.
Also some kind of shift buffer would be great, but how would i command it to shift to the next i.e. 1024 samples?
I hope someone can help me with this. I am realy frustrated about this, after reading lots of documentation of libvlc and not finding anything at all.
i am working on a modern jukebox like application.
When it came to playing audio i was excited that there is a java wrapper for libvlc, since i am using GWT as base for the application.
However, now the application has some state, where beatmatching is a relevant topic.
After reading very much literature and working through lots of examples of BPM Detection, i finaly build some BPM Detection api, which is the base for further work.
I have tested it with the java wave file reader, and it works pretty well.
Well, now i have got the problem, that my BPM Detection needs to be filled with samples for processing, not only supporting wave.
So now my problem, how do i get all samples of a song with vlcj?
Is there any bufferarray? The samples should be idealy in floats, though other type is ok.
Could someone send me some example, because i have no idea where to find some documation about this.
Also my c++ knowledge is not very good, though i understand it somehow .
The best solution would be an Array of Floats with all samples in there, the song contains.
Also some kind of shift buffer would be great, but how would i command it to shift to the next i.e. 1024 samples?
I hope someone can help me with this. I am realy frustrated about this, after reading lots of documentation of libvlc and not finding anything at all.