Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Proper .Volume usage?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 waxychicken   Members   -  Reputation: 99

Like
0Likes
Like

Posted 22 February 2012 - 08:45 PM

What is the proper usage, purpose, or ranges of the .Volume property in SlimDX.DirectSound.SoundBuffer?
(for example, i'm learning that i can't set the .volume to 500)
Does it eleminate attenuation or does it just increase the general volume and thus increase the range the sound can be herd from?

Links welcome.


	Public Sub PlaySound(ByVal description As String, ByVal X As Double, ByVal Y As Double, ByVal Z As Double, Optional ByVal MyVolume As Integer = 500)
		Dim Temp As Integer
		description = UCase(description)
		Temp = SoundList.FindIndex(Function(value As SoundListDefinition)
									   Return value.Description = description
								   End Function)
		Dim SoundBufferEntryCopy As New SoundListDefinition
		Device.DuplicateSoundBuffer(SoundList(Temp).Buffer, SoundBufferEntryCopy.Buffer)
		SoundBufferEntryCopy.Buffer.Volume = MyVolume

		Dim t As New Thread(DirectCast(Sub() PlayStoredSoundBuffer(SoundBufferEntryCopy, X, Y, Z), ThreadStart))
		t.Start()
	End Sub

You can argue with me all day long about which programing language is best...
but it all comes down to which language is best FOR YOU.

vb.net 2010 Visual Studio Ultimate

Sponsor:

#2 waxychicken   Members   -  Reputation: 99

Like
-1Likes
Like

Posted 26 February 2012 - 08:32 PM

Posted Image
You can argue with me all day long about which programing language is best...
but it all comes down to which language is best FOR YOU.

vb.net 2010 Visual Studio Ultimate




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS