/dports/games/libretro-scummvm/scummvm-7b1e929/audio/softsynth/opl/ |
H A D | mame.cpp | 112 #define SIN_ENT (1<<SIN_ENT_SHIFT) macro 678 SIN_TABLE = (int **) DS::fastRamAlloc(SIN_ENT * 4 * sizeof(int *)); in OPLOpenTable() 716 SIN_TABLE[0] = SIN_TABLE[SIN_ENT /2 ] = &TL_TABLE[EG_ENT - 1]; in OPLOpenTable() 717 for (s = 1;s <= SIN_ENT / 4; s++) { in OPLOpenTable() 718 pom = sin(2 * M_PI * s / SIN_ENT); /* sin */ in OPLOpenTable() 725 SIN_TABLE[SIN_ENT / 2 + s] = SIN_TABLE[SIN_ENT - s] = &TL_TABLE[TL_MAX + j]; in OPLOpenTable() 727 for (s = 0;s < SIN_ENT; s++) { in OPLOpenTable() 728 SIN_TABLE[SIN_ENT * 1 + s] = s < (SIN_ENT / 2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 729 SIN_TABLE[SIN_ENT * 2 + s] = SIN_TABLE[s % (SIN_ENT / 2)]; in OPLOpenTable() 730 …SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 +… in OPLOpenTable() [all …]
|
/dports/games/residualvm/residualvm-0.3.1/audio/softsynth/opl/ |
H A D | mame.cpp | 112 #define SIN_ENT (1<<SIN_ENT_SHIFT) macro 678 SIN_TABLE = (int **) DS::fastRamAlloc(SIN_ENT * 4 * sizeof(int *)); in OPLOpenTable() 716 SIN_TABLE[0] = SIN_TABLE[SIN_ENT /2 ] = &TL_TABLE[EG_ENT - 1]; in OPLOpenTable() 717 for (s = 1;s <= SIN_ENT / 4; s++) { in OPLOpenTable() 718 pom = sin(2 * M_PI * s / SIN_ENT); /* sin */ in OPLOpenTable() 725 SIN_TABLE[SIN_ENT / 2 + s] = SIN_TABLE[SIN_ENT - s] = &TL_TABLE[TL_MAX + j]; in OPLOpenTable() 727 for (s = 0;s < SIN_ENT; s++) { in OPLOpenTable() 728 SIN_TABLE[SIN_ENT * 1 + s] = s < (SIN_ENT / 2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 729 SIN_TABLE[SIN_ENT * 2 + s] = SIN_TABLE[s % (SIN_ENT / 2)]; in OPLOpenTable() 730 …SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 +… in OPLOpenTable() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 645 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 646 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 653 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 656 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 658 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 646 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 647 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 654 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 657 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 661 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 646 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 647 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 654 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 657 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 661 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 645 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 646 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 653 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 656 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 658 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 646 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 647 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 654 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 657 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 661 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 645 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 646 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 653 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 656 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 658 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 646 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 647 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 654 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 657 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 661 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 645 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 646 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 653 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 656 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 658 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/audio/softsynth/opl/ |
H A D | mame.cpp | 112 #define SIN_ENT (1<<SIN_ENT_SHIFT) macro 680 SIN_TABLE = (int **) DS::fastRamAlloc(SIN_ENT * 4 * sizeof(int *)); in OPLOpenTable() 718 SIN_TABLE[0] = SIN_TABLE[SIN_ENT /2 ] = &TL_TABLE[EG_ENT - 1]; in OPLOpenTable() 719 for (s = 1;s <= SIN_ENT / 4; s++) { in OPLOpenTable() 720 pom = sin(2 * M_PI * s / SIN_ENT); /* sin */ in OPLOpenTable() 727 SIN_TABLE[SIN_ENT / 2 + s] = SIN_TABLE[SIN_ENT - s] = &TL_TABLE[TL_MAX + j]; in OPLOpenTable() 729 for (s = 0;s < SIN_ENT; s++) { in OPLOpenTable() 730 SIN_TABLE[SIN_ENT * 1 + s] = s < (SIN_ENT / 2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 731 SIN_TABLE[SIN_ENT * 2 + s] = SIN_TABLE[s % (SIN_ENT / 2)]; in OPLOpenTable() 732 …SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 +… in OPLOpenTable() [all …]
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/hw/audio/ |
H A D | fmopl.c | 71 #define SIN_ENT 2048 macro 441 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 612 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(int32_t *))) == NULL) in OPLOpenTable() 646 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 647 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 654 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 657 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 659 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 660 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 661 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/games/exult/exult-snapshot-v1.7.0.20211128/audio/midi_drivers/ |
H A D | fmopl.cpp | 70 #define SIN_ENT (1<<SIN_ENT_SHIFT) macro 638 SIN_TABLE = new int *[SIN_ENT * 4]; in OPLOpenTable() 655 SIN_TABLE[0] = SIN_TABLE[SIN_ENT /2 ] = &TL_TABLE[EG_ENT - 1]; in OPLOpenTable() 656 for (uint32 s = 1; s <= SIN_ENT / 4; s++) { in OPLOpenTable() 657 double pom = sin(2 * M_PI * s / SIN_ENT); /* sin */ in OPLOpenTable() 664 SIN_TABLE[SIN_ENT / 2 + s] = SIN_TABLE[SIN_ENT - s] = &TL_TABLE[TL_MAX + j]; in OPLOpenTable() 666 for (uint32 s = 0; s < SIN_ENT; s++) { in OPLOpenTable() 667 SIN_TABLE[SIN_ENT * 1 + s] = s < (SIN_ENT / 2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 668 SIN_TABLE[SIN_ENT * 2 + s] = SIN_TABLE[s % (SIN_ENT / 2)]; in OPLOpenTable() 669 …SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 +… in OPLOpenTable() [all …]
|
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/sound/ |
H A D | fmopl.c | 51 #define SIN_ENT 2048 macro 423 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 628 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 629 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 634 SIN_TABLE[ s] = SIN_TABLE[SIN_ENT/2-s] = &TL_TABLE[j]; in OPLOpenTable() 636 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 639 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 641 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 642 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 643 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
H A D | fm.c | 114 #define SIN_ENT 2048 macro 289 static INT32 *SIN_TABLE[SIN_ENT]; 975 for (s = 1;s <= SIN_ENT/4;s++){ in FMInitTable() 976 pom = sin(2.0*PI*s/SIN_ENT); /* sin */ in FMInitTable() 983 SIN_TABLE[ s] = SIN_TABLE[SIN_ENT/2-s] = &TL_TABLE[j]; in FMInitTable() 985 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in FMInitTable() 989 SIN_TABLE[0] = SIN_TABLE[SIN_ENT/2] = &TL_TABLE[PG_CUT_OFF]; in FMInitTable() 3115 static INT32 *NOISE_TABLE[SIN_ENT]; 3227 for(i=0;i<SIN_ENT;i++) in OPMInitTable()
|
/dports/games/openxcom/OpenXcom-1.0/src/Engine/Adlib/ |
H A D | fmopl.cpp | 77 #define SIN_ENT 2048 macro 451 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 655 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 656 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 661 SIN_TABLE[ s] = SIN_TABLE[SIN_ENT/2-s] = &TL_TABLE[j]; in OPLOpenTable() 663 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 666 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 668 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 669 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 670 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/adplug/adplug/ |
H A D | fmopl.c | 79 #define SIN_ENT 2048 macro 453 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 624 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(INT32 *))) == NULL) in OPLOpenTable() 657 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 658 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 665 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 668 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 670 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 671 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 672 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/multimedia/libxine/xine-lib-1.2.11/contrib/nosefart/ |
H A D | fmopl.c | 59 #define SIN_ENT 2048 macro 431 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 602 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(INT32 *))) == NULL) in OPLOpenTable() 635 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 636 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 643 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 646 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 648 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 649 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 650 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/audio/libadplug/adplug-adplug-2.3.3/src/ |
H A D | fmopl.c | 83 #define SIN_ENT 2048 macro 459 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 630 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(INT32 *))) == NULL) in OPLOpenTable() 663 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 664 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 671 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 674 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 676 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 677 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 678 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|
/dports/audio/lmms/lmms-1.2.2/plugins/opl2/ |
H A D | fmopl.c | 79 #define SIN_ENT 2048 macro 497 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 720 SIN_TABLE[0] = SIN_TABLE[SIN_ENT/2] = &TL_TABLE[EG_ENT-1]; 721 for ( s = 1; s <= SIN_ENT/4; s++) { 722 pom = sin(2*PI*s/SIN_ENT); /* sin */ 729 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; 732 for ( s = 0; s < SIN_ENT; s++) { 733 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; 734 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; 735 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; [all …]
|
/dports/audio/nosefart/nosefart-1.92f-mls/src/sndhrdw/ |
H A D | fmopl.c | 55 #define SIN_ENT 2048 440 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… 611 if( (SIN_TABLE = malloc(SIN_ENT*4 *sizeof(INT32 *))) == NULL) 644 for (s = 1;s <= SIN_ENT/4;s++){ 645 pom = sin(2*PI*s/SIN_ENT); /* sin */ 652 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; 655 for (s = 0;s < SIN_ENT;s++) 657 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; 658 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; 659 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; [all …]
|
/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/SoundChips/ |
H A D | Fmopl.c | 52 #define SIN_ENT 2048 macro 408 …env,con) (&SIN_TABLE[slot->wavetableidx])[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][env] 604 for (s = 1;s <= SIN_ENT/4;s++){ in OPLOpenTable() 605 pom = sin(2*PI*s/SIN_ENT); /* sin */ in OPLOpenTable() 610 SIN_TABLE[ s] = SIN_TABLE[SIN_ENT/2-s] = &TL_TABLE[j]; in OPLOpenTable() 612 SIN_TABLE[SIN_ENT/2+s] = SIN_TABLE[SIN_ENT -s] = &TL_TABLE[TL_MAX+j]; in OPLOpenTable() 614 for (s = 0;s < SIN_ENT;s++) in OPLOpenTable() 616 SIN_TABLE[SIN_ENT*1+s] = s<(SIN_ENT/2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable() 617 SIN_TABLE[SIN_ENT*2+s] = SIN_TABLE[s % (SIN_ENT/2)]; in OPLOpenTable() 618 SIN_TABLE[SIN_ENT*3+s] = (s/(SIN_ENT/4))&1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT*2+s]; in OPLOpenTable() [all …]
|