cocos2d iphone - playEffect] problem with effect -
hi trying make car engine sound using simpleaudioengine .
i can use engine on menu loop without problem works fine [[simpleaudioengine sharedengine] playbackgroundmusic:@"menuloop.wav"];
but cannot use of playeffect metods
[[simpleaudioengine sharedengine] playeffect:@"engine.wav"];
[[simpleaudioengine sharedengine] playeffect:@"engine.wav" pitch:0.5f pan:0.6f gain:1.0f];
both of them dont working on simulator or device
plz me out...
make sure wave file using format supported cocosdenshion. explained here: http://www.cocos2d-iphone.org/wiki/doku.php/cocosdenshion:faq#i_ve_got_some_wave_files_but_they_don_t_work_what_can_i_do
you can try using afconvert tool fix file:
afconvert -v -f wave -d lei16 notworking.wav working.wav
Comments
Post a Comment