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 0xD2, 0x1B, 0xD1, 0x61, 0x0A, 0x5D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
362 1.00000000f, 1.00057781f, 1.00115597f, 1.00173450f, 1.00231326f, 1.00289237f, 1.00347185f, 1.00405169f,
363 1.00463188f, 1.00521231f, 1.00579309f, 1.00637424f, 1.00695574f, 1.00753760f, 1.00811982f, 1.00870228f,
364 1.00928509f, 1.00986826f, 1.01045179f, 1.01103568f, 1.01161981f, 1.01220429f, 1.01278913f, 1.01337433f,
365 1.01395988f, 1.01454580f, 1.01513207f, 1.01571858f, 1.01630545f, 1.01689267f, 1.01748025f, 1.01806819f,
366 1.01865649f, 1.01924503f, 1.01983392f, 1.02042317f, 1.02101278f, 1.02160275f, 1.02219307f, 1.02278376f,
367 1.02337468f, 1.02396595f, 1.02455759f, 1.02514958f, 1.02574193f, 1.02633464f, 1.02692771f, 1.02752113f,
368 1.02811480f, 1.02870882f, 1.02930319f, 1.02989793f, 1.03049302f, 1.03108847f, 1.03168428f, 1.03228045f,
369 1.03287685f, 1.03347361f, 1.03407073f, 1.03466821f, 1.03526604f, 1.03586423f, 1.03646278f, 1.03706169f,
370 1.03766096f, 1.03826058f, 1.03886044f, 1.03946066f, 1.04006124f, 1.04066217f, 1.04126346f, 1.04186511f,
371 1.04246712f, 1.04306948f, 1.04367220f, 1.04427528f, 1.04487872f, 1.04548252f, 1.04608655f, 1.04669094f,
372 1.04729569f, 1.04790080f, 1.04850626f, 1.04911208f, 1.04971826f, 1.05032480f, 1.05093169f, 1.05153894f,
373 1.05214655f, 1.05275452f, 1.05336285f, 1.05397153f, 1.05458057f, 1.05518997f, 1.05579972f, 1.05640972f,
374 1.05702007f, 1.05763078f, 1.05824184f, 1.05885327f, 1.05946505f, 1.06007719f, 1.06068969f, 1.06130254f,
375 1.06191576f, 1.06252933f, 1.06314325f, 1.06375754f, 1.06437218f, 1.06498718f, 1.06560254f, 1.06621826f,
376 1.06683433f, 1.06745076f, 1.06806755f, 1.06868470f, 1.06930220f, 1.06992006f, 1.07053828f, 1.07115686f,
377 1.07177579f, 1.07239509f, 1.07301474f, 1.07363474f, 1.07425511f, 1.07487583f, 1.07549691f, 1.07611835f,
379 1.00000000f, 1.07674015f, 1.15936935f, 1.24833953f, 1.34413731f, 1.44728661f, 1.55835164f, 1.67793977f,
380 1.80670512f, 1.94535196f, 2.09463859f, 2.25538135f, 2.42845964f, 2.61482000f, 2.81548166f, 3.03154206f,
381 3.26418304f, 3.51467681f, 3.78439355f, 4.07480860f, 4.38750982f, 4.72420788f, 5.08674431f, 5.47710180f,
382 5.89741516f, 6.34998369f, 6.83728218f, 7.36197615f, 7.92693520f, 8.53524971f, 9.19024563f, 9.89550686f,
384 1.00000000f, 0.99942255f, 0.99884546f, 0.99826866f, 0.99769223f, 0.99711609f, 0.99654031f, 0.99596488f,
385 0.99538976f, 0.99481499f, 0.99424052f, 0.99366641f, 0.99309260f, 0.99251914f, 0.99194598f, 0.99137318f,
386 0.99080074f, 0.99022859f, 0.98965681f, 0.98908532f, 0.98851418f, 0.98794335f, 0.98737288f, 0.98680270f,
387 0.98623288f, 0.98566335f, 0.98509419f, 0.98452532f, 0.98395681f, 0.98338860f, 0.98282075f, 0.98225319f,
388 0.98168600f, 0.98111910f, 0.98055255f, 0.97998631f, 0.97942042f, 0.97885484f, 0.97828960f, 0.97772467f,
389 0.97716010f, 0.97659582f, 0.97603190f, 0.97546828f, 0.97490501f, 0.97434205f, 0.97377944f, 0.97321713f,
390 0.97265512f, 0.97209346f, 0.97153211f, 0.97097111f, 0.97041041f, 0.96985006f, 0.96929002f, 0.96873033f,
391 0.96817094f, 0.96761185f, 0.96705312f, 0.96649468f, 0.96593660f, 0.96537882f, 0.96482134f, 0.96426421f,
392 0.96370739f, 0.96315092f, 0.96259475f, 0.96203887f, 0.96148336f, 0.96092814f, 0.96037328f, 0.95981872f,
393 0.95926446f, 0.95871055f, 0.95815694f, 0.95760363f, 0.95705068f, 0.95649803f, 0.95594567f, 0.95539367f,
394 0.95484197f, 0.95429057f, 0.95373952f, 0.95318878f, 0.95263839f, 0.95208830f, 0.95153850f, 0.95098901f,
395 0.95043987f, 0.94989103f, 0.94934249f, 0.94879431f, 0.94824642f, 0.94769883f, 0.94715160f, 0.94660467f,
396 0.94605803f, 0.94551176f, 0.94496578f, 0.94442010f, 0.94387472f, 0.94332969f, 0.94278497f, 0.94224054f,
397 0.94169647f, 0.94115269f, 0.94060922f, 0.94006604f, 0.93952322f, 0.93898070f, 0.93843848f, 0.93789655f,
398 0.93735498f, 0.93681371f, 0.93627274f, 0.93573207f, 0.93519175f, 0.93465173f, 0.93411201f, 0.93357259f,
399 0.93303353f, 0.93249476f, 0.93195629f, 0.93141812f, 0.93088025f, 0.93034273f, 0.92980552f, 0.92926860f,
401 1.00000000f, 0.92873198f, 0.86254311f, 0.80107135f, 0.74398059f, 0.69095856f, 0.64171529f, 0.59598154f,
402 0.55350709f, 0.51405972f, 0.47742370f, 0.44339865f, 0.41179851f, 0.38245043f, 0.35519394f, 0.32987997f,
403 0.30637008f, 0.28453568f, 0.26425737f, 0.24542427f, 0.22793336f, 0.21168900f, 0.19660234f, 0.18259089f,
404 0.16957800f, 0.15749252f, 0.14626834f, 0.13584408f, 0.12616274f, 0.11717137f, 0.10882080f, 0.10106535f,
405 0.09386262f, 0.08717322f, 0.08096056f, 0.07519066f, 0.06983197f, 0.06485518f, 0.06023308f, 0.05594039f,
406 0.05195362f, 0.04825099f, 0.04481224f, 0.04161856f, 0.03865249f, 0.03589780f, 0.03333944f, 0.03096340f,
407 0.02875670f, 0.02670727f, 0.02480390f, 0.02303617f, 0.02139443f, 0.01986969f, 0.01845361f, 0.01713846f,
408 0.01591704f, 0.01478266f, 0.01372913f, 0.01275068f, 0.01184197f, 0.01099801f, 0.01021421f, 0.00948626f,
409 0.00881019f, 0.00818231f, 0.00759917f, 0.00705759f, 0.00655461f, 0.00608748f, 0.00565364f, 0.00525071f,
410 0.00487650f, 0.00452897f, 0.00420620f, 0.00390643f, 0.00362802f, 0.00336946f, 0.00312933f, 0.00290631f,
411 0.00269918f, 0.00250681f, 0.00232816f, 0.00216224f, 0.00200814f, 0.00186502f, 0.00173211f, 0.00160866f,
412 0.00149402f, 0.00138754f, 0.00128865f, 0.00119681f, 0.00111152f, 0.00103230f, 0.00095873f, 0.00089041f,
413 0.00082695f, 0.00076801f, 0.00071328f, 0.00066244f, 0.00061523f, 0.00057139f, 0.00053067f, 0.00049285f,
414 0.00045772f, 0.00042510f, 0.00039480f, 0.00036667f, 0.00034054f, 0.00031627f, 0.00029373f, 0.00027279f,
415 0.00025335f, 0.00023530f, 0.00021853f, 0.00020295f, 0.00018849f, 0.00017506f, 0.00016258f, 0.00015099f,
416 0.00014023f, 0.00013024f, 0.00012096f, 0.00011234f, 0.00010433f, 0.00009689f, 0.00008999f, 0.00008358f
697 s32 foundPlayer = FALSE;
701 u32 priority, polyphonyMode, useSpecificPlayerMode;
705 #define NEXT_CMD trackCount--; if (trackCount <= 0 ) { break; } cmdList += 2;
707 u32 soundIndex = (entry->
soundID - 1) & 0xFF;
714 if (soundIndex < 0x140) {
718 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
719 player = &manager->
players[playerIndex];
728 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
729 player = &manager->
players[playerIndex];
738 au_sfx_play_sound(manager, player, (s8*)cmdList, entry, 0, 0);
743 if (soundIndex >= 0xC0) {
744 if (customSEF != NULL) {
745 cmdList = (u16*)customSEF;
747 sectionIndex = ((soundIDLower - 1) >> 8) + 4;
749 v1 = soundIndex - 0xC0;
750 cmdList = (u16*)&manager->
normalSounds[sectionIndex][v1];
755 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
756 player = &manager->
players[playerIndex];
765 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
766 player = &manager->
players[playerIndex];
775 au_sfx_play_sound(manager, player, (u8*)cmdList, entry, 0, 0);
779 if (customSEF != NULL) {
780 cmdList = (u16*)customSEF;
782 sectionIndex = ((soundID) >> 8) & 3;
783 cmdList = (u16*)&manager->
normalSounds[sectionIndex][soundIndex];
788 soundInfo = cmdList[1];
790 priority = (soundInfo & 0x300) >> 8;
791 polyphonyMode = (soundInfo & 0x60) >> 5;
792 useSpecificPlayerMode = soundInfo;
793 useSpecificPlayerMode = (useSpecificPlayerMode & 0x80) >> 7;
795 if (polyphonyMode == 0) {
797 for (playerIndex = 0; playerIndex < 8; playerIndex++) {
798 player = &manager->
players[playerIndex];
806 if (useSpecificPlayerMode == 0) {
808 playerIndex = soundInfo & 0x7;
809 player = &manager->
players[playerIndex];
820 for (playerIndex = soundInfo & 0x7; playerIndex >= 0; playerIndex--) {
821 player = &manager->
players[playerIndex];
831 for (playerIndex = soundInfo & 0x7; playerIndex >= 0; playerIndex--) {
832 player = &manager->
players[playerIndex];
842 for (playerIndex = soundInfo & 0x7; playerIndex >= 0; playerIndex--) {
843 player = &manager->
players[playerIndex];
852 playerIndex = soundInfo & 0x7;
853 player = &manager->
players[playerIndex];
864 exclusiveID = (soundInfo & 0x1800) >> 11;
865 if (exclusiveID != 0) {
866 au_sfx_stop_by_exlusive_id(manager, exclusiveID);
868 au_sfx_stop_by_id(manager, entry->
soundID);
871 trackCount = 2 << (polyphonyMode - 1);
873 if (useSpecificPlayerMode != 0) {
874 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
877 player = &manager->
players[playerIndex];
879 au_sfx_play_sound(manager, player,
AU_FILE_RELATIVE(manager->
sefData, *cmdList), entry, priority, exclusiveID);
888 if (trackCount != 0) {
889 for (playerIndex = 7; playerIndex >= 0;){
892 player = &manager->
players[playerIndex];
894 au_sfx_play_sound(manager, player,
AU_FILE_RELATIVE(manager->
sefData, *cmdList), entry, priority, exclusiveID);
904 if (trackCount != 0) {
905 for (playerIndex = 7; playerIndex >= 0; playerIndex--) {
908 player = &manager->
players[playerIndex];
910 au_sfx_play_sound(manager, player,
AU_FILE_RELATIVE(manager->
sefData, *cmdList), entry, priority, exclusiveID);
920 for (i = 0; i < trackCount; i++) {
922 soundInfo = cmdList[1];
923 playerIndex = soundInfo & 7;
924 player = &manager->
players[playerIndex];
925 priority = (soundInfo & 0x300) >> 8;
927 au_sfx_play_sound(manager, player,
AU_FILE_RELATIVE(manager->
sefData, *cmdList), entry, priority, exclusiveID);