Camera have a parent scene node:
Node = mSceneMgr->getRootSceneNode()->createChildSceneNode("Node");
mCamNode = Node->createChildSceneNode("CamNode");
mCamNode->attachObject(mCamera);
then
mSoundManager = new OgreOggSound::OgreOggSoundManager();
mSoundManager->init();
mSoundManager->setDistanceModel(AL_LINEAR_DISTANCE);
mSoundManager->createSound("Two", "intro.ogg", false, true);
mSoundManager->getSound("Two")->setMaxDistance(50);
mSoundManager->getSound("Two")->setReferenceDistance(5);
//mCamera->getParentSceneNode()->attachObject(mSoundManager->getListener()); //with this line application crashes// without application runs, sound plays, the problem is app crashes and i can't attach listener to a node
mSoundManager->playSound("Two");
Here is the log:
21:33:56: Creating resource group General
21:33:56: Creating resource group Internal
21:33:56: Creating resource group Autodetect
21:33:56: SceneManagerFactory for type 'DefaultSceneManager' registered.
21:33:56: Registering ResourceManager for type Material
21:33:56: Registering ResourceManager for type Mesh
21:33:56: Registering ResourceManager for type Skeleton
21:33:56: MovableObjectFactory for type 'ParticleSystem' registered.
21:33:56: OverlayElementFactory for type Panel registered.
21:33:56: OverlayElementFactory for type BorderPanel registered.
21:33:56: OverlayElementFactory for type TextArea registered.
21:33:56: Registering ResourceManager for type Font
21:33:56: ArchiveFactory for archive type FileSystem registered.
21:33:56: ArchiveFactory for archive type Zip registered.
21:33:56: FreeImage version: 3.10.0
21:33:56: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See
http://freeimage.sourceforge.net for details
21:33:56: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
21:33:56: DDS codec registering
21:33:56: Registering ResourceManager for type HighLevelGpuProgram
21:33:56: Registering ResourceManager for type Compositor
21:33:56: MovableObjectFactory for type 'Entity' registered.
21:33:56: MovableObjectFactory for type 'Light' registered.
21:33:56: MovableObjectFactory for type 'BillboardSet' registered.
21:33:56: MovableObjectFactory for type 'ManualObject' registered.
21:33:56: MovableObjectFactory for type 'BillboardChain' registered.
21:33:56: MovableObjectFactory for type 'RibbonTrail' registered.
21:33:56: Loading library .\RenderSystem_Direct3D9
21:33:56: Installing plugin: D3D9 RenderSystem
21:33:56: D3D9 : Direct3D9 Rendering Subsystem created.
21:33:56: D3D9: Driver Detection Starts
21:33:56: D3D9: Driver Detection Ends
21:33:56: Plugin successfully installed
21:33:56: Loading library .\OgreOggSound
21:33:56: Installing plugin: OgreOggSound
21:33:56: MovableObjectFactory for type 'OgreOggISound' registered.
21:33:56: Plugin successfully installed
21:33:56: *-*-* OGRE Initialising
21:33:56: *-*-* Version 1.6.0 (Shoggoth)
21:33:56: Creating resource group Bootstrap
21:33:56: Added resource location 'C:/OGG/release/media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
21:33:56: Added resource location 'C:/OGG/release/media' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/sounds' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/fonts' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/materials/programs' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/materials/scripts' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/materials/textures' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/models' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/overlays' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/particle' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/gui' of type 'FileSystem' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
21:33:56: Added resource location 'C:/OGG/release/media/packs/skybox.zip' of type 'Zip' to resource group 'General'
21:33:56: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
21:33:56: D3D9 : RenderSystem Option: Anti aliasing = Level 0
21:33:56: D3D9 : RenderSystem Option: Floating-point mode = Fastest
21:33:56: D3D9 : RenderSystem Option: Full Screen = No
21:33:56: D3D9 : RenderSystem Option: Rendering Device = Radeon X1950 Pro
21:33:56: D3D9 : RenderSystem Option: VSync = No
21:33:56: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
21:33:56: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
21:33:56: CPU Identifier & Features
21:33:56: -------------------------
21:33:56: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
21:33:56: * SSE: yes
21:33:56: * SSE2: yes
21:33:56: * SSE3: yes
21:33:56: * MMX: yes
21:33:56: * MMXEXT: yes
21:33:56: * 3DNOW: no
21:33:56: * 3DNOWEXT: no
21:33:56: * CMOV: yes
21:33:56: * TSC: yes
21:33:56: * FPU: yes
21:33:56: * PRO: yes
21:33:56: * HT: no
21:33:56: -------------------------
21:33:56: D3D9 : Subsystem Initialising
21:33:56: D3D9RenderSystem::_createRenderWindow "OGGApp", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
21:33:56: D3D9 : Created D3D9 Rendering Window 'OGGApp' : 1024x768, 32bpp
21:33:56: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
21:33:56: Registering ResourceManager for type Texture
21:33:56: Registering ResourceManager for type GpuProgram
21:33:56: RenderSystem capabilities
21:33:56: -------------------------
21:33:56: RenderSystem Name: Direct3D9 Rendering Subsystem
21:33:56: GPU Vendor: ati
21:33:56: Device Name: Radeon X1950 Pro
21:33:56: Driver Version: 6.14.10.6891
21:33:56: * Fixed function pipeline: yes
21:33:56: * Hardware generation of mipmaps: yes
21:33:56: * Texture blending: yes
21:33:56: * Anisotropic texture filtering: yes
21:33:56: * Dot product texture operation: yes
21:33:56: * Cube mapping: yes
21:33:56: * Hardware stencil buffer: yes
21:33:56: - Stencil depth: 8
21:33:56: - Two sided stencil support: yes
21:33:56: - Wrap stencil values: yes
21:33:56: * Hardware vertex / index buffers: yes
21:33:56: * Vertex programs: yes
21:33:56: * Fragment programs: yes
21:33:56: * Geometry programs: no
21:33:56: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
21:33:56: * Texture Compression: yes
21:33:56: - DXT: yes
21:33:56: - VTC: no
21:33:56: * Scissor Rectangle: yes
21:33:56: * Hardware Occlusion Query: yes
21:33:56: * User clip planes: yes
21:33:56: * VET_UBYTE4 vertex element type: yes
21:33:56: * Infinite far plane projection: yes
21:33:56: * Hardware render-to-texture: yes
21:33:56: * Floating point textures: yes
21:33:56: * Non-power-of-two textures: yes (limited)
21:33:56: * Volume textures: yes
21:33:56: * Multiple Render Targets: 4
21:33:56: - With different bit depths: no
21:33:56: * Point Sprites: yes
21:33:56: * Extended point parameters: yes
21:33:56: * Max Point Size: 256
21:33:56: * Vertex texture fetch: no
21:33:56: * Render to Vertex Buffer : no
21:33:56: * DirectX per stage constants: no
21:33:56: ***************************************
21:33:56: *** D3D9 : Subsystem Initialised OK ***
21:33:56: ***************************************
21:33:56: ResourceBackgroundQueue - threading disabled
21:33:56: Particle Renderer Type 'billboard' registered
21:33:56: Parsing scripts for resource group Autodetect
21:33:56: Finished parsing scripts for resource group Autodetect
21:33:56: Parsing scripts for resource group Bootstrap
21:33:56: Parsing script OgreCore.material
21:33:56: Parsing script OgreProfiler.material
21:33:56: Parsing script Ogre.fontdef
21:33:56: Parsing script OgreDebugPanel.overlay
21:33:56: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
21:33:56: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
21:33:56: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
21:33:56: Font BlueHighwayusing texture size 512x512
21:33:56: Info: Freetype returned null for character 127 in font BlueHighway
21:33:56: Info: Freetype returned null for character 128 in font BlueHighway
21:33:56: Info: Freetype returned null for character 129 in font BlueHighway
21:33:56: Info: Freetype returned null for character 130 in font BlueHighway
21:33:56: Info: Freetype returned null for character 131 in font BlueHighway
21:33:56: Info: Freetype returned null for character 132 in font BlueHighway
21:33:56: Info: Freetype returned null for character 133 in font BlueHighway
21:33:56: Info: Freetype returned null for character 134 in font BlueHighway
21:33:56: Info: Freetype returned null for character 135 in font BlueHighway
21:33:56: Info: Freetype returned null for character 136 in font BlueHighway
21:33:56: Info: Freetype returned null for character 137 in font BlueHighway
21:33:56: Info: Freetype returned null for character 138 in font BlueHighway
21:33:56: Info: Freetype returned null for character 139 in font BlueHighway
21:33:56: Info: Freetype returned null for character 140 in font BlueHighway
21:33:56: Info: Freetype returned null for character 141 in font BlueHighway
21:33:56: Info: Freetype returned null for character 142 in font BlueHighway
21:33:56: Info: Freetype returned null for character 143 in font BlueHighway
21:33:56: Info: Freetype returned null for character 144 in font BlueHighway
21:33:56: Info: Freetype returned null for character 145 in font BlueHighway
21:33:56: Info: Freetype returned null for character 146 in font BlueHighway
21:33:56: Info: Freetype returned null for character 147 in font BlueHighway
21:33:56: Info: Freetype returned null for character 148 in font BlueHighway
21:33:56: Info: Freetype returned null for character 149 in font BlueHighway
21:33:56: Info: Freetype returned null for character 150 in font BlueHighway
21:33:56: Info: Freetype returned null for character 151 in font BlueHighway
21:33:56: Info: Freetype returned null for character 152 in font BlueHighway
21:33:56: Info: Freetype returned null for character 153 in font BlueHighway
21:33:56: Info: Freetype returned null for character 154 in font BlueHighway
21:33:56: Info: Freetype returned null for character 155 in font BlueHighway
21:33:56: Info: Freetype returned null for character 156 in font BlueHighway
21:33:56: Info: Freetype returned null for character 157 in font BlueHighway
21:33:56: Info: Freetype returned null for character 158 in font BlueHighway
21:33:56: Info: Freetype returned null for character 159 in font BlueHighway
21:33:56: Info: Freetype returned null for character 160 in font BlueHighway
21:33:56: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
21:33:56: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
21:33:56: Parsing script OgreLoadingPanel.overlay
21:33:56: Finished parsing scripts for resource group Bootstrap
21:33:56: Parsing scripts for resource group General
21:33:56: Parsing script sample.fontdef
21:33:56: Finished parsing scripts for resource group General
21:33:56: Parsing scripts for resource group Internal
21:33:56: Finished parsing scripts for resource group Internal
21:33:56: ***********************************
21:33:56: *** --- Initialising OpenAL --- ***
21:33:56: ***********************************
21:33:57: *** --- OpenAL version 1.1
21:33:57: *** --- AVAILABLE DEVICES --- ***
21:33:57: *** --- SB Audigy 2 Audio [D000]
21:33:57: *** --- Generic Hardware
21:33:57: *** --- Generic Software
21:33:57: *** --- Choosing: SB Audigy 2 Audio [D000] (Default device)
21:33:57: *** --- OpenAL Device successfully created
21:33:57: *** --- OpenAL Context successfully created
21:33:57: *** --- SUPPORTED FORMATS
21:33:57: *** --- EFX Detected
21:33:57: *** --- 2 Auxiliary Effect Slot(s)
21:33:57: *** --- 2 Auxiliary Send(s) per Source
21:33:57: *** --- EFFECTS SUPPORTED:
21:33:57: *** --- 'Reverb' Support: YES
21:33:57: *** --- 'EAX Reverb' Support: YES
21:33:57: *** --- 'Chorus' Support: YES
21:33:57: *** --- 'Distortion' Support: YES
21:33:57: *** --- 'Echo' Support: YES
21:33:57: *** --- 'Flanger' Support: YES
21:33:57: *** --- 'Frequency shifter' Support: YES
21:33:57: *** --- 'Vocal Morpher' Support: YES
21:33:57: *** --- 'Pitch shifter' Support: YES
21:33:57: *** --- 'Ring modulator' Support: YES
21:33:57: *** --- 'Autowah' Support: YES
21:33:57: *** --- 'Compressor' Support: YES
21:33:57: *** --- 'Equalizer' Support: YES
21:33:57: *** --- FILTERS SUPPORTED:
21:33:57: *** --- 'Low Pass' Support: YES
21:33:57: *** --- 'High Pass' Support: NO
21:33:57: *** --- 'Band Pass' Support: NO
21:33:57: *** --- XRAM NOT Detected
21:33:57: *** --- EAX 4.0 Detected
21:33:57: *** --- Created 61 sources for simultaneous sounds
21:33:57: *** --- Using BOOST threads for streaming
21:33:57: *** --- Recording devices available:
21:33:57: ***--- 'SB Audigy 2 Audio [D000]'
21:33:57: ***********************************
21:33:57: *** --- OpenAL Initialised --- ***
21:33:57: ***********************************