Error when using sound files
2 posters
Error when using sound files
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.
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
Re: Error when using sound files
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
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
Similar topics
» error trying to add sound to tutorial12
» Compressed Textures from Apple's texturetool
» Sound Example
» .CPP files using the SIO2.h include?
» Please provide Blender files
» Compressed Textures from Apple's texturetool
» Sound Example
» .CPP files using the SIO2.h include?
» Please provide Blender files
Permissions in this forum:
You cannot reply to topics in this forum