I am not shure if this is the right way to do it, but I solved this by adding the following to ofxIPhone:
in ofxOpenALSoundPlayer.h:
static void ofxALSoundSetListenerOrientation(float atX, float atY, float atZ, float upX, float upY, float upZ);
in ofxOpenALSoundPlayer.ccp:
void ofxOpenALSoundPlayer::ofxALSoundSetListenerOrientation(float atX, float atY, float atZ, float upX, float upY, float upZ){
SoundEngine_SetListenerOrientation(atX,atY,atZ,upX,upY,upZ);
}
in SoundEnginge.h:
OSStatus SoundEngine_SetListenerOrientation(Float32 atX, Float32 atY, Float32 atZ, Float32 upX, Float32 upY, Float32 upZ);
and in SoundEngine.ccp:
extern “C”
OSStatus SoundEngine_SetListenerOrientation(Float32 atX, Float32 atY, Float32 atZ, Float32 upX, Float32 upY, Float32 upZ)
{
return (sOpenALObject) ? sOpenALObject->SetListenerOrientation(atX, atY, atZ, upX,upY,upZ) : kSoundEngineErrUnitialized;
}