error trying to add sound to tutorial12

View previous topic View next topic Go down

error trying to add sound to tutorial12

Post  foobar8675 on Tue May 19, 2009 7:44 pm

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.

foobar8675

Posts : 16
Join date : 2009-05-07

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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