Class: Windows::SoundStructs::WAVEHDR

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/win32/windows/structs.rb

Overview

define WAVEHDR which is a header to a block of audio lpData is a pointer to the block of native memory that, in this case, is an integer array of PCM data

Instance Method Summary collapse

Constructor Details

#initialize(lpData, dwBufferLength, dwFlags = 0, dwLoops = 1) ⇒ WAVEHDR

Initializes struct with sensible defaults for most commonly used values. While setting these manually is possible, please be sure you know what changes will result in, as an incorrectly set struct will result in unpredictable behavior.



59
60
61
62
63
64
# File 'lib/win32/windows/structs.rb', line 59

def initialize(lpData, dwBufferLength, dwFlags = 0, dwLoops = 1)
  self[:lpData] = lpData
  self[:dwBufferLength] = dwBufferLength
  self[:dwFlags] = dwFlags
  self[:dwLoops] = dwLoops
end