English
Source / code snippets

Volume Change

 
Volume Change
CompileMarkSeparationsalvo, iF
 
03/18/05  
 



Have too yet what found - can unfortunately in the moment not testing...
It's all right here around the WAV-LAutstärke. functions only, if the driver The Lautstärkeregelung too supported...
CompileMarkSeparation
Windowstyle 31
Windowtitle WAV-Laustärkeregelung
Window 0,0-640,440
DEF @waveOutSetVolume(2)!winmm,waveOutSetVolume
DEF @waveOutGetVolume(2)!winmm,waveOutGetVolume
Def @HiWord(1) Div&(&(1),$10000)
Def @LoWord(1) And(&(1),$FFFF)
Def @MakeLong(2)Or(&(1),Mul(&(2),$10000))
Def @GetLeftChannel(1) Div&(LoWord(&(1)),$028F)
Def @GetRightChannel(1) Div&(HiWord(&(1)),$028F)
Declare LautLinks&,LautRechts&,Volume#,LautLinks%,LautRechts%,SOUND$,Volume&
Let LautLinks&=@Create(VScroll,%HWND,,20,10,20,300)
Let LautRechts&=@Create(VScroll,%HWND,,200,10,20,300)
SetScrollRange LautLinks&,0,100
SetScrollRange LautLinks&,0,100
@waveOutGetVolume(-1,@Addr(Volume&))
LET LautLinks%=@GetLeftChannel(Volume&)
LET LautRechts%=@GetLeftChannel(Volume&)
SetScrollPos LautLinks&,LautLinks%
SetScrollPos LautRechts&,LautRechts%
LET SOUND$=@LoadFile$(Sounddatei laden,*.WAV)
Playsound Sound$,9

While 0=0

    Waitinput
    LET LautLinks%=(@GetScrollPos(LautLinks&)/100)*$FFFF
    LET LautRechts%=(@GetScrollPos(LautRechts&)/100)*$FFFF
    @waveOutSetVolume(-1,@MakeLong(@Mul(LautLinks%,$028F),@Mul(LautRechts%,$028F)))

Wend

 
03/19/05  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.456 Views

Untitledvor 0 min.
Sven Bader06/30/21
RudiB.02/26/20
RICOSCH11/06/19
p.specht04/07/17
More...

Themeninformationen

this Topic has 2 subscriber:

unbekannt (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie