MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / audio4changecallback

Function audio4changecallback

Descent3/pilot.cpp:2686–2697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686void audio4changecallback(int index) {
2687 if (index == 0) {
2688 AudioTauntPilot->set_multiplayer_data(NULL, NULL, NULL, NULL, NULL, "");
2689 return;
2690 } else {
2691 index--;
2692 char *p = GetStringInList(index, AudioTauntPilotSndInfo->files, AudioTauntPilotSndInfo->needed_size);
2693 if (p) {
2694 AudioTauntPilot->set_multiplayer_data(NULL, NULL, NULL, NULL, NULL, p);
2695 }
2696 }
2697}
2698
2699#define TAUNT_MENU_W 512
2700#define TAUNT_MENU_H 384

Callers

nothing calls this directly

Calls 2

GetStringInListFunction · 0.85
set_multiplayer_dataMethod · 0.80

Tested by

no test coverage detected