Esempio n. 1
0
//--------------------
float * ofSoundGetSpectrum(int nBands){
	#ifdef OF_SOUND_PLAYER_FMOD
		return ofFmodSoundGetSpectrum(nBands);
	#else
		ofLog(OF_LOG_ERROR, "ofSoundGetSpectrum returning NULL - no implementation!");
		return NULL;
	#endif
}
//--------------------
float * ofSoundGetSpectrum(int nBands) {
#ifdef OF_SOUND_PLAYER_FMOD
    return ofFmodSoundGetSpectrum(nBands);
#elif defined(OF_SOUND_PLAYER_OPENAL)
    return ofOpenALSoundPlayer::getSystemSpectrum(nBands);
#else
    ofLog(OF_LOG_ERROR, "ofSoundGetSpectrum returning NULL - no implementation!");
    return NULL;
#endif
}
Esempio n. 3
0
//--------------------
float * ofSoundGetSpectrum(int nBands){
	#ifdef OF_SOUND_PLAYER_FMOD
		return ofFmodSoundGetSpectrum(nBands);
	#elif defined(OF_SOUND_PLAYER_OPENAL)
		return ofOpenALSoundPlayer::getSystemSpectrum(nBands);
	#elif defined(OF_SOUND_PLAYER_EMSCRIPTEN)
		return ofxEmscriptenSoundPlayer::getSystemSpectrum(nBands);
	#else
		ofLogWarning("ofSoundPlayer") << "ofSoundGetSpectrum() not implemented on this platform, returning NULL";
		return NULL;
	#endif
}