FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Error when using sound files

Go down

Error when using sound files Empty Error when using sound files

Post  martinnu2 on Fri Feb 27, 2009 2:54 pm

I have added a .ogg sound file from the tutorials to blend file and see it is present in the sound directory of the sio2 file. I added the call sio2ResourceBindAllSoundBuffers( sio2->_SIO2resource ), this works fine.

I get an error when doing sio2ResourceGenId, i get a EXC_BAD ACCESS in sio2SoundBufferGenId.

The line _vorbis_info = ov_info( &_SIO2soundbuffer->_OggVorbis_File, -1 ); results in an empty _vorbis_info.
I think the problem is that the _OggVorbis_File structure is filled with empty value. I cannot find why this is the case.

Any suggestions ?

Martin.

martinnu2

Posts : 6
Join date : 2009-02-09

Back to top Go down

Error when using sound files Empty Re: Error when using sound files

Post  martinnu2 on Fri Feb 27, 2009 3:28 pm

Never mind, found out that I should use sio2InitAL in the EAGLView.mm

Another question:
When I set a sound on an object as Fx. What are the calls needed in my sensor handler to play that sound. I tried sio2SoundPlay( mysound); but nothing happens (not in simulator and not on device)

Any help is appreciated

Martin

martinnu2

Posts : 6
Join date : 2009-02-09

Back to top Go down

Error when using sound files Empty Re: Error when using sound files

Post  sio2interactive on Fri Feb 27, 2009 3:29 pm

have you set the volume? Wink

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 41
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Error when using sound files Empty Re: Error when using sound files

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum