Results 1 to 2 of 2

Thread: Comparing Buffers

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225

    Comparing Buffers

    I'm just wondering, is it possible to compare two buffers in Direct X 7? AKA, if the WAV files loaded into both the buffers are the same? Would it be a simple case of this?

    Code:
    If Buffer1 = Buffer2 then
        Match = True
    Else
        Match = False
    End If
    Does anyone know? Thanks for any help.

    -Git

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Maybe you could store the buffers in a UDT, like this:

    VB Code:
    1. Private Type tSoundBuffer
    2.     Name As String
    3.     Buffer As (whatever)
    4. End Type

    Just compare their names
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width