Home
last modified time | relevance | path

Searched refs:MAX_VOLUME (Results 1 – 25 of 240) sorted by relevance

12345678910

/dports/games/openttd/openttd-12.1/src/
H A Dmixer.cpp51 static const int MAX_VOLUME = 32767; variable
81 buffer[0] = Clamp(buffer[0] + (*b * volume_left >> 16), -MAX_VOLUME, MAX_VOLUME); in mix_int16()
82 buffer[1] = Clamp(buffer[1] + (*b * volume_right >> 16), -MAX_VOLUME, MAX_VOLUME); in mix_int16()
89 buffer[0] = Clamp(buffer[0] + (data * volume_left >> 16), -MAX_VOLUME, MAX_VOLUME); in mix_int16()
90 buffer[1] = Clamp(buffer[1] + (data * volume_right >> 16), -MAX_VOLUME, MAX_VOLUME); in mix_int16()
117 buffer[0] = Clamp(buffer[0] + (*b * volume_left >> 8), -MAX_VOLUME, MAX_VOLUME); in mix_int8_to_int16()
118 buffer[1] = Clamp(buffer[1] + (*b * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); in mix_int8_to_int16()
125 buffer[0] = Clamp(buffer[0] + (data * volume_left >> 8), -MAX_VOLUME, MAX_VOLUME); in mix_int8_to_int16()
126 buffer[1] = Clamp(buffer[1] + (data * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); in mix_int8_to_int16()
/dports/sysutils/lineak-defaultplugin/lineak-defaultplugin-0.9/default_plugin/
H A Dsoundctrl.cpp134 left = (left>MAX_VOLUME) ? MAX_VOLUME : ((left<0) ? 0 : left); in toggleMute()
135 right = (right>MAX_VOLUME) ? MAX_VOLUME : ((right<0) ? 0 : right); in toggleMute()
210 left = (left>MAX_VOLUME) ? MAX_VOLUME : ((left<0) ? 0 : left); in setVolume()
211 right = (right>MAX_VOLUME) ? MAX_VOLUME : ((right<0) ? 0 : right); in setVolume()
251 left = (left>MAX_VOLUME) ? MAX_VOLUME : ((left<0) ? 0 : left); in adjustVolume()
252 right = (right>MAX_VOLUME) ? MAX_VOLUME : ((right<0) ? 0 : right); in adjustVolume()
/dports/games/opendungeons/OpenDungeons-0.7.1/source/sound/
H A DMusicPlayer.cpp28 const float MAX_VOLUME = 25.0f; variable
45 mMusic.setVolume(MAX_VOLUME); in loadFromFile()
60 mMusic.setVolume(MAX_VOLUME); in play()
119 if (volume >= MAX_VOLUME) in update()
121 mMusic.setVolume(MAX_VOLUME); in update()
/dports/games/openjazz/openjazz-20190106/src/io/
H A Dsound.cpp96 int musicVolume = MAX_VOLUME >> 1; // 50%
97 int soundVolume = MAX_VOLUME >> 2; // 25%
147 soundVolume * SDL_MIX_MAXVOLUME / MAX_VOLUME); in audioCallback()
158 soundVolume * SDL_MIX_MAXVOLUME / MAX_VOLUME); in audioCallback()
438 if (volume > MAX_VOLUME) musicVolume = MAX_VOLUME; in setMusicVolume()
638 if (volume > MAX_VOLUME) soundVolume = MAX_VOLUME; in setSoundVolume()
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/librespot-playback-0.3.1/src/mixer/
H A Dmappings.rs20 } else if volume == Self::MAX_VOLUME {
25 let normalized_volume = volume as f64 / Self::MAX_VOLUME as f64;
59 return Self::MAX_VOLUME;
77 (unmapped_volume * Self::MAX_VOLUME as f64) as u16
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/src/view/
H A Dvisu.c89 bar.h = my_min(MAX_VOLUME, mused.vis.spec_peak[i]) * content.h / MAX_VOLUME; in spectrum_analyzer_view()
92 src.h = my_min(MAX_VOLUME, mused.vis.spec_peak[i]) * content.h / MAX_VOLUME; in spectrum_analyzer_view()
131 float a = ((float)v * M_PI / (MAX_VOLUME * 4) + M_PI) * 0.25 + mused.vis.prev_a * 0.75; in catometer_view()
/dports/games/atr3d/atr3d/
H A Dsound.cpp46 float volumevals[MAX_VOLUME];
66 for (i=0; i<=MAX_VOLUME; i++) { in initsound()
68 for (j=MAX_VOLUME; j>i; j--) { in initsound()
87 if (volume > MAX_VOLUME) { in setvolume()
88 volume=MAX_VOLUME; in setvolume()
/dports/net/rdesktop/rdesktop-1.9.0/
H A Drdpsnd_dsp.c33 #define MAX_VOLUME 65535 macro
35 static uint16 softvol_left = MAX_VOLUME;
36 static uint16 softvol_right = MAX_VOLUME;
59 if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME)) in rdpsnd_dsp_softvol()
62 factor_left = (softvol_left * 256) / MAX_VOLUME; in rdpsnd_dsp_softvol()
63 factor_right = (softvol_right * 256) / MAX_VOLUME; in rdpsnd_dsp_softvol()
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/klystron/src/snd/
H A Dmusic.c172 …t->volume * volume / MAX_VOLUME * (int)mus->volume / MAX_VOLUME * (int)mus->play_volume / MAX_VOLU… in update_volumes()
177 … 0 : ts->volume * (int)mus->volume / MAX_VOLUME * (int)mus->play_volume / MAX_VOLUME * (int)chn->v… in update_volumes()
338 mus->volume = MAX_VOLUME; in mus_init_engine()
339 mus->play_volume = MAX_VOLUME; in mus_init_engine()
475 if (track_status->volume > MAX_VOLUME) track_status->volume = MAX_VOLUME; in do_command()
566 if (track_status->volume > MAX_VOLUME) track_status->volume = MAX_VOLUME; in do_command()
639 if (mus->play_volume > MAX_VOLUME) mus->play_volume = MAX_VOLUME; in do_command()
960 if (vol <= MAX_VOLUME) in mus_exec_track_command()
1544 …pinst->volume * (int)mus->volume / MAX_VOLUME * (int)mus->play_volume / MAX_VOLUME * (int)muschn->… in mus_advance_tick()
1664 mus->play_volume = MAX_VOLUME; in mus_set_song()
[all …]
/dports/audio/libadplug/adplug-adplug-2.3.3/src/
H A Dadlib.cpp290 if (volume > MAX_VOLUME) in SetVoiceVolume()
291 volume = MAX_VOLUME; in SetVoiceVolume()
295 if (volume > MAX_VOLUME) in SetVoiceVolume()
296 volume = MAX_VOLUME; in SetVoiceVolume()
402 slotRelVolume[i] = MAX_VOLUME; in InitSlotVolume()
491 t1 += t1 + MAX_VOLUME; /* round off to 0.5 */ in SndSKslLevel()
492 t1 = 63 - t1 / (2 * MAX_VOLUME); in SndSKslLevel()
/dports/multimedia/qwinff/qwinff-0.2.1-22-g17e987e/src/ui/
H A Dmediaplayerwidget.cpp29 #define MAX_VOLUME 100 macro
50 ui->slideVolume->setRange(0, MAX_VOLUME); in MediaPlayerWidget()
268 if (m_volume > MAX_VOLUME) in load_volume()
269 m_volume = MAX_VOLUME; in load_volume()
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/src/
H A Dcommand.c64 {MUS_FX_SET_GLOBAL_VOLUME, 0x7f00, "Set global volume", "GlobVol", 0, MAX_VOLUME},
65 {MUS_FX_SET_CHANNEL_VOLUME, 0x7f00, "Set channel volume", "ChnVol", 0, MAX_VOLUME},
163 …intf(text, buffer_size, "%s (%+.1f dB)\n", name, percent_to_dB((float)(inst & 0xff) / MAX_VOLUME)); in get_command_desc()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/sound/
H A Dnamco.c21 #define MAX_VOLUME 16 macro
74 static INT16 *waveform[MAX_VOLUME];
86 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
99 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
125 if ((p = (INT16 *)auto_malloc(size * MAX_VOLUME * sizeof (INT16))) == NULL) in build_decoded_waveform()
128 for (v = 0; v < MAX_VOLUME; v++) in build_decoded_waveform()
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/sound/
H A Dnamco.c20 #define MAX_VOLUME 16 macro
72 static INT16 *waveform[MAX_VOLUME];
82 for (v = 0; v < MAX_VOLUME; v++) in update_namcos1_waveform()
105 if ((p = (INT16 *)auto_malloc(size * MAX_VOLUME * sizeof (INT16))) == NULL) in build_decoded_waveform()
108 for (v = 0; v < MAX_VOLUME; v++) in build_decoded_waveform()
130 for (v = 0; v < MAX_VOLUME; v++) in build_decoded_waveform()
/dports/mail/coolmail/coolmail-1.3/
H A Daudio.c70 #define MAX_VOLUME 100 macro
86 if ( setting > MAX_VOLUME ) in setvolume()
87 setting=MAX_VOLUME; in setvolume()
/dports/audio/rhvoice/RHVoice-1.2.4/src/core/
H A Dparams.cpp25 #ifndef MAX_VOLUME
26 #define MAX_VOLUME 2 macro
52 max_volume("max_volume",MAX_VOLUME,1,MAX_MAX_VOLUME), in voice_params()
/dports/audio/nas/nas-1.9.4/clients/audio/autool/
H A Daudiotool.c86 #define MAX_VOLUME 200 macro
378 else if (newVolume > MAX_VOLUME) in scrollProcCB()
379 newVolume = MAX_VOLUME; in scrollProcCB()
388 (float) globals->volume / MAX_VOLUME, -1.0); in scrollProcCB()
402 newVolume = *percent * MAX_VOLUME; in jumpProcCB()
559 ((float) globals->volume) / MAX_VOLUME, -1.0); in main()
/dports/games/maelstrom/Maelstrom-3.0.6/maclib/
H A DMac_Sound.cpp190 if ( vol > MAX_VOLUME ) in Volume()
191 vol = MAX_VOLUME; in Volume()
273 s = (s*sound->volume)/MAX_VOLUME; in FillAudioU8()
/dports/games/ecwolf/ecwolf-1.3.3-src/src/
H A Did_sd.h126 static const int MAX_VOLUME = 20; variable
129 return (double(v)+0.3)/(MAX_VOLUME+0.3); in MULTIPLY_VOLUME()
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/snd/
H A Dnamco_snd.cpp7 #define MAX_VOLUME 16 macro
47 INT16 *waveform[MAX_VOLUME];
66 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
79 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
554 namco_waveformdatasize = size * MAX_VOLUME * sizeof (INT16); in build_decoded_waveform()
561 for (v = 0; v < MAX_VOLUME; v++) in build_decoded_waveform()
/dports/games/libretro-emux/emux-640d4ba/controllers/audio/
H A Dpapu.c40 #define MAX_VOLUME 0x0F macro
811 ch1_output *= (float)papu->channel1.volume / MAX_VOLUME; in papu_tick()
815 ch2_output *= (float)papu->channel2.volume / MAX_VOLUME; in papu_tick()
818 ch3_output = (float)papu->channel3.sample / MAX_VOLUME; in papu_tick()
822 ch4_output *= (float)papu->channel4.volume / MAX_VOLUME; in papu_tick()
900 (papu->channel1.volume < MAX_VOLUME)) in vol_env_tick()
917 (papu->channel2.volume < MAX_VOLUME)) in vol_env_tick()
934 (papu->channel4.volume < MAX_VOLUME)) in vol_env_tick()
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/snd/
H A Dnamco_snd.cpp7 #define MAX_VOLUME 16 macro
47 INT16 *waveform[MAX_VOLUME];
162 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
175 for (v = 0; v < MAX_VOLUME; v++) in update_namco_waveform()
639 namco_waveformdatasize = size * MAX_VOLUME * sizeof (INT16); in build_decoded_waveform()
646 for (v = 0; v < MAX_VOLUME; v++) in build_decoded_waveform()
/dports/emulators/mess/mame-mame0226/src/devices/sound/
H A Dnamco.h21 static constexpr unsigned MAX_VOLUME = 16; variable
71 std::unique_ptr<int16_t[]> m_waveform[MAX_VOLUME];
/dports/emulators/mame/mame-mame0226/src/devices/sound/
H A Dnamco.h21 static constexpr unsigned MAX_VOLUME = 16; variable
71 std::unique_ptr<int16_t[]> m_waveform[MAX_VOLUME];
/dports/biology/molden/molden5.8/test/
H A Ddock_lig.mol2149 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
300 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
451 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
602 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
753 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
904 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
1055 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME
1206 …OTAL E_MATCH E_LIPO E_AMBIG E_CLASH E_ROT E_PLP E_FFLIG E_FFRL RMS AVG_VOLUME MAX_VOLUME

12345678910