void LLAudioEngine::setListener(LLVector3 pos, LLVector3 vel, LLVector3 up, LLVector3 at) { if(!mListenerp) { allocateListener(); } mListenerp->set(pos,vel,up,at); }
BOOL LLAudioEngine::init(const S32 num_channels) { setDefaults(); mNumChannels = num_channels; allocateListener(); // Initialize the decode manager gAudioDecodeMgrp = new LLAudioDecodeMgr; return TRUE; }
bool LLAudioEngine::init(const S32 num_channels, void* userdata) { setDefaults(); mNumChannels = num_channels; mUserData = userdata; allocateListener(); // Initialize the decode manager gAudioDecodeMgrp = new LLAudioDecodeMgr; llinfos << "LLAudioEngine::init() AudioEngine successfully initialized" << llendl; return true; }