class Sound::DeviceLibrary::MMLib::WAVEHDR

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

Public Class Methods

new(lpData, dwBufferLength, dwFlags = 0, dwLoops = 1) click to toggle source

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.

# File lib/sound/device_library/mmlib.rb, line 185
def initialize(lpData, dwBufferLength, dwFlags = 0, dwLoops = 1)
  self[:lpData] = lpData
  self[:dwBufferLength] = dwBufferLength
  self[:dwFlags] = dwFlags
  self[:dwLoops] = dwLoops
end