Compiling error : has no overrider. Can´t instantiate abstract class

Im getting this error. This is a class that i haved already used before, like a year ago. Now im starting the proyect once again , but i dont know what this means.

Im supposed to be using an addon called : ofxMultiSpeakerSoundPlayer . But as I was unable to add it like an addon, i´ve tried to paste the files in the scr folder and link them through them. A year ago this used to worked, but now is not working. . I´ve lost the original code. But the addon is the same. How can I solve this or implement this?

This is the addon : https://github.com/vcuculo/ofxMultiSpeakerSoundPlayer

How can I make work?

I need to make a multichannel sound card to send different sounds through each exit.

  > Severity	Code	Description	Project	File	Line	Suppression State	Detail Description
    > Error	C2259	'ofxMultiSpeakerSoundPlayer': cannot instantiate abstract class (compiling source file src\ofApp.cpp)	Multichanneltest	e:\julito\openframeworks\apps\myapps\multichanneltest\src\ofApp.h	25	
    > Error (active)		object of abstract class type "ofxMultiSpeakerSoundPlayer" is not allowed:	Multichanneltest	e:\Julito\Openframeworks\apps\myApps\Multichanneltest\src\ofApp.h	25		            pure virtual function "ofBaseSoundPlayer::load" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::unload" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::getPosition" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::getPositionMS" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::isPlaying" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::getSpeed" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::getPan" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::isLoaded" has no overrider
    >             pure virtual function "ofBaseSoundPlayer::getVolume" has no overrider
    > Error	C2259	'ofxMultiSpeakerSoundPlayer': cannot instantiate abstract class (compiling source file src\main.cpp)	Multichanneltest	e:\julito\openframeworks\apps\myapps\multichanneltest\src\ofApp.h	25

Hi,
it means that the ofxMultiSpeakerSoundPlayer must implement all those functions that are listed in the error.
in easy, just paste the following into the class declaration in the ofxMultiSpeakerSoundPlayer.h file.

    virtual void unload()  {}
    virtual float getPosition() const {}
    virtual int getPositionMS() const {}
    virtual bool isPlaying() const  {}
    virtual float getSpeed() const  {}
    virtual float getPan() const  {}
    virtual bool isLoaded() const  {}
    virtual float getVolume() const  {}

Thanks !

now im getting this errors :

Severity	Code	Description	Project	File	Line	Suppression State	Detail Description
Error (active)		object of abstract class type "ofxMultiSpeakerSoundPlayer" is not allowed:	Multichanneltest	e:\Julito\Openframeworks\apps\myApps\lib vieja no anda\src\ofApp.h	26		            pure virtual function "ofBaseSoundPlayer::load" has no overrider
Error	C2259	'ofxMultiSpeakerSoundPlayer': cannot instantiate abstract class (compiling source file src\main.cpp)	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofApp.h	26	
Error	C2259	'ofxMultiSpeakerSoundPlayer': cannot instantiate abstract class (compiling source file src\ofApp.cpp)	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofApp.h	26	
Warning	C4101	'numdrivers': unreferenced local variable	Multichanneltest	E:\Julito\Openframeworks\apps\myApps\lib vieja no anda\src\ofxMultiSpeakerSoundPlayer.cpp	169	
Warning	C4101	'speakermode': unreferenced local variable	Multichanneltest	E:\Julito\Openframeworks\apps\myApps\lib vieja no anda\src\ofxMultiSpeakerSoundPlayer.cpp	168	
Error	C4716	'ofxMultiSpeakerSoundPlayer::getPosition': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	67	
Error	C4716	'ofxMultiSpeakerSoundPlayer::getPositionMS': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	68	
Error	C4716	'ofxMultiSpeakerSoundPlayer::getPan': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	71	
Error	C4716	'ofxMultiSpeakerSoundPlayer::isLoaded': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	72	
Error	C4716	'ofxMultiSpeakerSoundPlayer::getVolume': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	73	
Error	C4716	'ofxMultiSpeakerSoundPlayer::isPlaying': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	69	
Error	C4716	'ofxMultiSpeakerSoundPlayer::getSpeed': must return a value	Multichanneltest	e:\julito\openframeworks\apps\myapps\lib vieja no anda\src\ofxmultispeakersoundplayer.h	70

‘Must return a value’

ofxMultiSpeakerSoundPlayer::getVolume for example expects you to return a float. So just write

virtual float getVolume() const { return 0; }

Thanks for your answer ! I think we are almost there ! :

Severity Code Description Project File Line Suppression State
Error C2259 ‘ofxMultiSpeakerSoundPlayer’: cannot instantiate abstract class (compiling source file src\ofApp.cpp) Multichanneltest e:\julito\openframeworks\apps\myapps\mutichanneltest\src\ofApp.h 26
Error C2259 ‘ofxMultiSpeakerSoundPlayer’: cannot instantiate abstract class (compiling source file src\main.cpp) Multichanneltest e:\julito\openframeworks\apps\myapps\mutichanneltest\src\ofApp.h 26

I think the functions works a should now but
Still getting the primary error thought.

HEy, sorry I missed the return statements.
whats going on is that it is missing the correct load function. I missed that too.
add this too
bool load(string fileName, bool stream = false) {return loadSound(fileName, stream); }

cheers

1 Like

Soo…

This is the final object construction :

`#pragma once

#include "ofConstants.h"
#include "ofBaseSoundPlayer.h"


extern "C" {
#include "fmod.h"
#include "fmod_errors.h"
}

//		TO DO :
//		---------------------------
// 		-fft via fmod, as in the last time...
// 		-close fmod if it's up
//		-loadSoundForStreaming(char * fileName);
//		---------------------------

// 		interesting:
//		http://www.compuphase.com/mp3/mp3loops.htm


// ---------------------------------------------------------------------------- SOUND SYSTEM FMOD

// --------------------- global functions:
void ofFmodSoundStopAll();
void ofFmodSoundSetVolume(float vol);
void ofFmodSoundUpdate();						// calls FMOD update.
float * ofFmodSoundGetSpectrum(int nBands);		// max 512...


// --------------------- player functions:
class ofxMultiSpeakerSoundPlayer : public ofBaseSoundPlayer {

	public:

		ofxMultiSpeakerSoundPlayer();

		bool loadSound(string fileName, bool stream = false);
		void unloadSound();
		void play();
		void playTo(int speaker);
		void stop();

		void setVolume(float vol);
		void setPan(float vol);
		void setSpeed(float spd);
		void setPaused(bool bP);
		void setLoop(bool bLp);
		void setMultiPlay(bool bMp);
		void setPosition(float pct); // 0 = start, 1 = end;
		void setPositionMS(int ms);

		virtual void unload() {}
		virtual float getPosition() const { return 0; }
		virtual int getPositionMS() const { return 0; }
		virtual bool isPlaying() const  { return 0; }
		virtual float getSpeed() const { return 0; }
		virtual float getPan() const { return 0; }
		virtual bool isLoaded() const { return 0; }
		virtual float getVolume() const { return 0; }

		bool load(string fileName, bool stream = false) { return loadSound(fileName, stream); }


		float getPosition();
		int getPositionMS();
		bool getIsPlaying();
		float getSpeed();
		float getPan();
		float getVolume();
		bool isLoaded();

		static void initializeFmod();
		static void closeFmod();

		bool isStreaming;
		bool bMultiPlay;
		bool bLoop;
		bool bLoadedOk;
		bool bPaused;
		float pan; // -1 to 1
		float volume; // 0 - 1
		float internalFreq; // 44100 ?
		float speed; // -n to n, 1 = normal, -1 backwards
		unsigned int length; // in samples;

		FMOD_RESULT result;
		FMOD_CHANNEL * channel;
		FMOD_SOUND * sound;


	


};

And this is the log cat. . . as you see… still not working.

Severity Code Description Project File Line Suppression State
Warning C4101 ‘numdrivers’: unreferenced local variable Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofxMultiSpeakerSoundPlayer.cpp 179
Warning C4101 ‘speakermode’: unreferenced local variable Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofxMultiSpeakerSoundPlayer.cpp 178
Error LNK2005 “void __cdecl ofFmodSoundStopAll(void)” (?ofFmodSoundStopAll@@YAXXZ) already defined in ofxMultiSpeakerSoundPlayer.obj Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\openframeworksLib_debug.lib(ofFmodSoundPlayer.obj) 1
Error LNK2005 “void __cdecl ofFmodSoundSetVolume(float)” (?ofFmodSoundSetVolume@@YAXM@Z) already defined in ofxMultiSpeakerSoundPlayer.obj Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\openframeworksLib_debug.lib(ofFmodSoundPlayer.obj) 1
Error LNK2005 “void __cdecl ofFmodSoundUpdate(void)” (?ofFmodSoundUpdate@@YAXXZ) already defined in ofxMultiSpeakerSoundPlayer.obj Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\openframeworksLib_debug.lib(ofFmodSoundPlayer.obj) 1
Error LNK2005 “float * __cdecl ofFmodSoundGetSpectrum(int)” (?ofFmodSoundGetSpectrum@@YAPAMH@Z) already defined in ofxMultiSpeakerSoundPlayer.obj Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\openframeworksLib_debug.lib(ofFmodSoundPlayer.obj) 1

Hi,
you shouldn’t have this on this file. Remove it.

#include "ofConstants.h"
#include "ofBaseSoundPlayer.h"


extern "C" {
#include "fmod.h"
#include "fmod_errors.h"
}

//		TO DO :
//		---------------------------
// 		-fft via fmod, as in the last time...
// 		-close fmod if it's up
//		-loadSoundForStreaming(char * fileName);
//		---------------------------

// 		interesting:
//		http://www.compuphase.com/mp3/mp3loops.htm


// ---------------------------------------------------------------------------- SOUND SYSTEM FMOD

// --------------------- global functions:
void ofFmodSoundStopAll();
void ofFmodSoundSetVolume(float vol);
void ofFmodSoundUpdate();						// calls FMOD update.
float * ofFmodSoundGetSpectrum(int nBands);		// max 512...

just replace for #include “ofMain.h”

cheers

This is my code now,

#include "ofMain.h"

class ofxMultiSpeakerSoundPlayer : public ofBaseSoundPlayer {

public:

	ofxMultiSpeakerSoundPlayer();

	bool loadSound(string fileName, bool stream = false);
	void unloadSound();
	void play();
	void playTo(int speaker);
	void stop();

	void setVolume(float vol);
	void setPan(float vol);
	void setSpeed(float spd);
	void setPaused(bool bP);
	void setLoop(bool bLp);
	void setMultiPlay(bool bMp);
	void setPosition(float pct); // 0 = start, 1 = end;
	void setPositionMS(int ms);

	 void unload() {}
	 float getPosition() const { return 0; }
	 int getPositionMS() const { return 0; }
	 bool isPlaying() const  { return 0; }
	 float getSpeed() const { return 0; }
	 float getPan() const { return 0; }
	 virtual bool isLoaded() const { return 0; }
	 virtual float getVolume() const { return 0; }

	bool load(string fileName, bool stream = false) { return loadSound(fileName, stream); }


	float getPosition();
	int getPositionMS();
	bool getIsPlaying();
	float getSpeed();
	float getPan();
	float getVolume();
	bool isLoaded();

	static void initializeFmod();
	static void closeFmod();

	bool isStreaming;
	bool bMultiPlay;
	bool bLoop;
	bool bLoadedOk;
	bool bPaused;
	float pan; // -1 to 1
	float volume; // 0 - 1
	float internalFreq; // 44100 ?
	float speed; // -n to n, 1 = normal, -1 backwards
	unsigned int length; // in samples;

	FMOD_RESULT result;
	FMOD_CHANNEL * channel;
	FMOD_SOUND * sound;   `};`

`

Im getting this errors now

Severity Code Description Project File Line Suppression State Warning C4101 'speakermode': unreferenced local variable Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofxMultiSpeakerSoundPlayer.cpp 178 Error C2011 'ofxMultiSpeakerSoundPlayer': 'class' type redefinition (compiling source file src\ofApp.cpp) Multichanneltest e:\julito\openframeworks\apps\myapps\mutichanneltestvieja\src\ofxMultiSpeakerSoundPlayer.h 5 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 24 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 24 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 25 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 25 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 26 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 26 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 27 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 27 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 28 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 28 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 29 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 29 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 30 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 30 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 31 Error C2228 left of '.loadSound' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 31 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 33 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 33 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 34 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 34 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 35 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 35 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 36 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 36 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 38 Error C2228 left of '.setLoop' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 38 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 39 Error C2228 left of '.setLoop' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 39 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 40 Error C2228 left of '.setLoop' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 40 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 41 Error C2228 left of '.setLoop' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 41 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 61 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 61 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 65 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 65 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 69 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 69 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 73 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 73 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 78 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 78 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 82 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 82 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 86 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 86 Error C2027 use of undefined type 'ofxMultiSpeakerSoundPlayer' Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 92 Error C2228 left of '.playTo' must have class/struct/union Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofApp.cpp 92 Warning C4101 'numdrivers': unreferenced local variable Multichanneltest E:\Julito\Openframeworks\apps\myApps\MutichannelTestVIEJA\src\ofxMultiSpeakerSoundPlayer.cpp 179

OK, the problem has to do with implementing abstract classes. in your file you are redefining several functions and variables that are already defined in the original class that you are extending.
so, you must ONLY implement the functions from the abstract class you are trying to extend that start with the virtual keyword and that end in =0;
Dont copy and paste the whole ofBaseSoundPlayer.h file into your file!
just copy the pure abstract methods, the ones that start with virtual and end with =0; and replace the =0; for a ; if you are going to implement in the cpp file or {//the implementation code} to implement directly in the .h file
cheers

I don´t have no method that start with virtual and end in =0;

Where are this methods supposed to be?

I still don´t get it whiy is pop in up the “can´t implement abstract class” . I even found the code that I used to use but im having the same mistake , may be I should try a sooner version of visual studio or what?

@Julian_Puppo those abstract functions are defined in the ofBaseSoundPlayer.h file
https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/sound/ofBaseSoundPlayer.h

this new class you are implementing, that extends ofBaseSoundPlayer MUST provide an implementation for each one of these abstract functions (the ones ending in =0; )

Maybe if you post your complete code it might be easier. Also, which OF version are you using?
best