I want to stop my sample at certain point in my game , but I dont understand how to give my wanted sample and ID ?
]]>void al_stop_sample(ALLEGRO_SAMPLE_ID *spl_id) bool al_play_sample(ALLEGRO_SAMPLE *spl, float gain, float pan, float speed, ALLEGRO_PLAYMODE loop, ALLEGRO_SAMPLE_ID *ret_id)
So
ALLEGRO_SAMPLE_ID id; ALLEGRO_SAMPLE* spl = al_load_sample("sound.ogg"); al_play_sample(spl, 1.0f, 1.0f, 1.0f, 0, &id); al_stop_sample(&id); al_destroy_sample(spl);
]]>
Thank you alot works perfectly!
]]>