Class: Win32::WAVEHDR

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/win32/win32-mmlib_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

Returns a new instance of WAVEHDR.



47
48
49
50
51
52
53
54
# File 'lib/win32/win32-mmlib_structs.rb', line 47

def initialize(lpData, dwBufferLength, dwFlags = 0, dwLoops = 1)
  self[:lpData] = lpData
  self[:dwBufferLength] = dwBufferLength
  # self[:dwBytesRecorded] = dwBytesRecorded # used for waveIn, not waveOut
  # self[:dwUser] = dwUser
  self[:dwFlags] = dwFlags
  self[:dwLoops] = dwLoops
end