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.55 MB
Time: 0.021 c
1-22132
Leviathan
2001-12-19 19:38
2002.01.08
Hide shape


1-22248
Leviathan
2001-12-17 13:07
2002.01.08
Delphi mocks !!!


1-22237
PVR
2001-12-16 17:20
2002.01.08
TListView help sort


4-22479
VitaS
2001-11-02 21:08
2002.01.08
Help minimize my program in the system tray


1-22075
as
2001-12-19 12:40
2002.01.08
Tables in MS Word





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