error trying to add sound to tutorial12
error trying to add sound to tutorial12
I've been playing with the particle tutorial and wanted to add some sound like in tutorial09. in templateLoading() I added the lines in red
while( i != sio2->_SIO2resource->gi.number_entry )
{
sio2ResourceExtract( sio2->_SIO2resource, NULL );
++i;
}
sio2ResourceClose( sio2->_SIO2resource );
sio2ResourceBindAllSoundBuffers( sio2->_SIO2resource );
sio2ResourceBindAllImages( sio2->_SIO2resource );
sio2ResourceBindAllMaterials( sio2->_SIO2resource );
sio2ResourceBindAllMatrix( sio2->_SIO2resource );
sio2ResourceGenId( sio2->_SIO2resource );
however sio2ResourceGenId() gives me
Program received signal: “EXC_BAD_ACCESS” when stepping on file sio2_resource on line 2092
sio2SoundBufferGenId( _SIO2material->_SIO2soundbuffer, sio2IsEnabled( _SIO2material->sflags, SIO2_SOUND_STREAM ) );
any suggestions? any help is appreciated.
while( i != sio2->_SIO2resource->gi.number_entry )
{
sio2ResourceExtract( sio2->_SIO2resource, NULL );
++i;
}
sio2ResourceClose( sio2->_SIO2resource );
sio2ResourceBindAllSoundBuffers( sio2->_SIO2resource );
sio2ResourceBindAllImages( sio2->_SIO2resource );
sio2ResourceBindAllMaterials( sio2->_SIO2resource );
sio2ResourceBindAllMatrix( sio2->_SIO2resource );
sio2ResourceGenId( sio2->_SIO2resource );
however sio2ResourceGenId() gives me
Program received signal: “EXC_BAD_ACCESS” when stepping on file sio2_resource on line 2092
sio2SoundBufferGenId( _SIO2material->_SIO2soundbuffer, sio2IsEnabled( _SIO2material->sflags, SIO2_SOUND_STREAM ) );
any suggestions? any help is appreciated.
foobar8675- Posts : 16
Join date : 2009-05-07
Similar topics
» Error when using sound files
» loading taking about 10 sec when after adding sound
» Stream sound
» Sound loading time
» How to play sound in templateRender
» loading taking about 10 sec when after adding sound
» Stream sound
» Sound loading time
» How to play sound in templateRender
Permissions in this forum:
You cannot reply to topics in this forum