English
Forum

DSoundSetGlobalVolume(0) u.s.w

 
- Page 1 -


Hallöchen

so far be I now fully drin in the Prospeed WOW GENIAL-
however
I have to Your Beispielcode The functions
DSoundSetGlobalVolume(0) or DSoundSetVolume (B,V) inserted (naturally with right Values)

...
Prospeed$=pfad$;Prospeed.dll,
$I CROFANAKTUELLE PROJEKTELOSINCProspeed_Funktionen.inc
prospeed&=usedll(prospeed$)
.....
sd&=DSoundInit(%hwnd)
Text$=CrofanTest.wav
buffer1&=DSoundLoad(addr(Text$))
DSoundSetGlobalVolume(0)

In Your Beispielcode works everything wonderful, however by me comes a Exeption EAcces...... with DSoundSetGlobalVolume(0)
(if I this auskommentiere works without Error Message)
even if I DSoundPlay(buffer1&,0) aufrufe comes no tone.
with sd&=DSoundInit(%hwnd)
sd& yields komischerweise a worth of -2147024809 is the normal?
Rolf
 
04/20/04  
 



 
- Page 1 -


Hi clear lass you Time, You must you still not abhetzten, its but already what starkes, that You something like develops have.
Ähm I use logischerweise 7.5

Mach slow and stay us rocked
Rolf
 
04/20/04  
 



Hi Rolf,

Have whom Error now found.

DSoundInit(%hwnd) using as Parameter one Fensterhandle, but you have no Window opened. without Window Gibts by me too a crash, with Window listen I the Sample )

but this is well my guilt. in the guide To ProSpeed have I forget anzugeben, the DSoundInit() at all a Parameter using (schäm), the I will quick nachholen.

means, without Window too no Sound, ok ?
and DSoundSetGlobalVolume(500) fits neither, there are values of -10000 To 0 permitted, but no values over zero.

love Regards, Frank
 
04/20/04  
 



JUCHHHHUUUU
thanks Frank the wars it works!!!!
what heist here guilt - Nix guilt
now try I yet somehow hinzubekommen, that if
the Sprite in a given area is (Viereck aufm Window), that then what happens - it reicht means not GetSpriteX (H) and GetSpriteY (H) - and then be I vollstens pleased.
be on the Painting like a Weltmeister
To then
Rolf
 
04/20/04  
 



Hi,

great!
possible helps you there SetSpriteCage() or SpriteMovingRect()...

Greeting, Frank
 
04/20/04  
 



Yes thanks Frank
wants not this Posting überlasten, however
DSoundSetVolume (B,V) as well as DSoundSetGlobalVolume (V)
and DSoundStop (B) with right Values! let a Exeption hervorkommen. ?????
V= -10000 To 0 and B = the lever the Sprites How normally.
or must I with DSoundstop before DSoundGetNextBuffer (A)
settle? (naturally too with the right worth)
Sorry, that I so much question, but you see i'm keen with your DLL
Rolf
 
04/20/04  
 



 
- Page 2 -


Hi,

äh, are you sure, that you The guide correctly. durchgelesen have...?
what has Parameter B with Sprites To do ???
B standing for...

B : Long - Zeiger on a Buffer, the of DSoundPlay() transfer watts.

means first b&=DSoundPlay(...), now get You The address one Buffers back, The The Sounddaten contains. The others DSound-functions using this Buffer then to Play...

You überlastest Forum not, for is it Yes there !
i'm happy, the you ProSpeed so well gefällt )

Greeting, Frank
 
04/20/04  
 



OHHH Mist verschrieben -
naturally meant I do not Sprite
- I meant naturally B= Zeiger on the Buffer.
the comes of it, if one its thoughts everywhere and nirgendwo has
Rolf
 
04/20/04  
 



Hi OK have right - its always rather an example To post:
CompileMarkSeparation
declare sd&,prospeed&,buffer1&,text$,sound&,prospeed$
declare pfad$,text$,b&
Prospeed$=pfad$;"Prospeed.dll"
 $I C:PROFANAKTUELLE PROJEKTELOSINCProspeed_Funktionen.inc
prospeed&=usedll(prospeed$)
CLS					FENSTER damit es klappt  [img]http://img.webmart.de/w/f2/7.gif[/img]
Windowtitle ".. hmm warum gehts so nicht?"
DSoundSetGlobalVolume(-575)		HIER EXCEPTION ????? WARUM ???
sd&=DSoundInit(%hwnd)
text$="C:TEST.WAV"
buffer1&=DSoundLoad(addr(text$))
DSoundSetGlobalVolume(500) HIER BEI MIR EINE EXEPTION
print buffer1&
print "Enter Sound an | Escape Sound aus"

while 1

    waitinput

    if equ(%scankey,13)

        b&=sound&=DSoundPlay(buffer1&,1)	LOOP
        print "SOUND!  [img]https://img.webmart.de/w/f2/1.gif[/img] "

    elseif equ(%scankey,27)

        DSoundStop(b&)				HIER EXCEPTION ????? WARUM ???
        print "Nix Sound  [img]https://img.webmart.de/w/f2/2.gif[/img] "

    endif

wend

DSoundUnLoad(buffer1&)
Freedll buffer1&

and yet what:
with the Coordinates (Sprite within one Rechtecks) is not with your instructions, I it so my, as if The mouse (means here the Sprite) inside the Rechtecks is.
but I Have me so helped:
1.) einfarbiges Dummysprite prepares.
2.) there plaziert where The request his should
3.) with Collide(H,H) on Berrührung quizzed and
YEHA it functions.
To then
RocknRolf
 
04/20/04  
 



Ähh How always - Kopierfehler:
b&=sound&=DSoundPlay(buffer1&,1) LOOP
must naturally mean:
b&=DSoundPlay(buffer1&,1) LOOP

... and vergiß not the auskommentierte wegzumachen.

so now but
Rolf
 
04/20/04  
 



JAAAA - need not any more To look
everything clear Perhaps was the Error b&=sound&
(Perhaps ought to one not so much copy )
now GEHTS
CompileMarkSeparation
declare sd&,prospeed&,buffer1&,text$,sound&,prospeed$
declare pfad$,text$,b&
Prospeed$=pfad$;"Prospeed.dll"
 $I C:PROFANAKTUELLE PROJEKTELOSINCProspeed_Funktionen.inc
prospeed&=usedll(prospeed$)
CLS
Windowtitle ".. hmm warum gehts so nicht?"
sd&=DSoundInit(%hwnd)
text$="C:TEST.WAV"
buffer1&=DSoundLoad(addr(text$))
DSoundSetGlobalVolume(-1000)
print buffer1&
print "Enter Sound an | Escape Sound aus"

while 1

    waitinput

    if equ(%scankey,13)

        b&=DSoundPlay(buffer1&,1)	LOOP
        print "SOUND!  [img]https://img.webmart.de/w/f2/1.gif[/img] "

    elseif equ(%scankey,27)

        DSoundStop(b&)
        print "Nix Sound  [img]https://img.webmart.de/w/f2/2.gif[/img] "

    endif

wend

DSoundUnLoad(buffer1&)
DSoundDeInit()
Freedll buffer1&

but Perhaps fetch You here (evtl. bisschen strain) that as Exemple in your Help
Rolf
 
04/20/04  
 



Hi Rolf,

have you got now everything so far hinbekommen?

you have right, one small example would not so bad, i'm too very gladly ready, Sourcecodes of you aufzunehmen, only since so...

an Dll to program is sometimes Real horror. The Dll has ihren own code, works but not, without the whole in Profan then To testing. means always Sourcecodes at the same time To strain. and yet Example Programs and the References, puh...
but Fun machts nevertheless.

already time probiert, with your example often The Entertaste To pressing )

Greeting, Frank
 
04/20/04  
 



Jawohl Frank,
now is everything i.O
Related to the Enter is heavy!
means, To then and furthermore Hipp Hipp Prospeed!
Rolf
 
04/20/04  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.341 Views

Untitledvor 0 min.
Gast.081507/24/24
H.Brill12/11/21
Sven Bader06/30/21
p.specht04/07/17
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (19x)


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