Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

DelphiX_play Find similar branches


XeN   (2001-12-21 11:21) [0]

Who knows how to make stereo sound effect in DelphiX.



3d[Power]   (2001-12-21 11:29) [1]

this procedure is (c) 3d [Power] for NFK game.

const opt_stereo: boolean = true; opt_sound: boolean = true; opt_channelapproach: byte = 10; opt_reversestereo: boolean = false; procedure PLAYSOUND (filename: shortstring; x: real); var PanFactor, PanValue: Double; begin if OPT_SOUND = false then exit; if OPT_STEREO = true then begin PanFactor: = 31.25; // 10000 is the panning range PanValue: = ((round (X) * PanFactor) -10000) / OPT_CHANNELAPPROACH; if OPT_REVERSESTEREO then PanValue: = -panvalue; end else panvalue: = 0; try WaveLst.Items.Find (filename) .Pan: = round (Panvalue); WaveLst.Items.Find (filename) .Play (False); except AddMessage ("Error playing sound" "+ filename +" ""); end; end;
shorter than playsound ("your filename in dxwavelist", 320) - in the center.
shorter than playsound ("your filename in dxwavelist", 0) - on the left.
shorter than playsound ("your filename in dxwavelist", 640) - to the right.
You can adjust the degree of the stereo effect :)



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.81 MB
Time: 0.032 c
1-22260
Alex_Sudakov
2001-12-17 15:28
2002.01.08
Tell me, is there a DsgnIntf ​​unit in D6?


7-22435
sssss
2001-09-23 14:15
2002.01.08
MASTERYYY !!! QUESTION OF LIFE AND DEATH !!!!


14-22392
~ Mag ~
2001-11-10 13:27
2002.01.08
People how to unlock the registry in windows ???


1-22151
What a
2001-12-20 14:06
2002.01.08
MDI -ClientForm


1-22101
DenKop
2001-12-18 14:38
2002.01.08
Creating Help s





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish