I am trying to use ofxSoundPlayerObject in order to have access to the sound buffer of a sound file.
I am using of9.8, VS2015, Win32 Debug for compilation. Changing to x64 or Release doesn’t seem to make a difference.
I am constaltly having this weird error when executing the basic player example on the addon
SSMF: failed to get buffer sizeSSMF: Duration: 938.184
[verbose] ofxSoundPlayerObject: Loading file : C:\Developer\of_v0.9.8_vs_release\apps\myApps\testSound\bin\data\C.mp3
[verbose] ofxSoundPlayerObject: Duration : 938184
[verbose] ofxSoundPlayerObject: Channels : 2
[verbose] ofxSoundPlayerObject: SampleRate : 48000
[verbose] ofxSoundPlayerObject: Num Samples : 90065664
Assertion failed: size < sizeof(m_destBufferShort), file …\addons\ofxSoundObjects\libs\libaudiodecoder\src\audiodecodermediafoundation.cpp, line 221
In that case I was using a .mp3 file, but the same happens with .wav files provided as examples in ofSoundPlayer
I have added the property sheet as stated in the add on but it is weird. I am not sure if I should define how the file should be read or where.
The problem happens when calling to .load(path), precisly in line 51 of ofxSoundPlayerObject.cpp, more precisly when gets into OF_USING_LAD (ladReadFile(buffer), line 338). I can’t find where is that define and maybe used MPG123 for example.
Any help would be higly appreciated!