forked from Trevor3000/RemoteControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWAVEHDR.cs
More file actions
48 lines (47 loc) · 1.54 KB
/
Copy pathWAVEHDR.cs
File metadata and controls
48 lines (47 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace RemoteControl.Audio.NativeMethods
{
/// <summary>
/// This class represents WAVEHDR structure.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
internal struct WAVEHDR
{
/// <summary>
/// Long pointer to the address of the waveform buffer.
/// </summary>
public IntPtr lpData;
/// <summary>
/// Specifies the length, in bytes, of the buffer.
/// </summary>
public uint dwBufferLength;
/// <summary>
/// When the header is used in input, this member specifies how much data is in the buffer.
/// When the header is used in output, this member specifies the number of bytes played from the buffer.
/// </summary>
public uint dwBytesRecorded;
/// <summary>
/// Specifies user data.
/// </summary>
public IntPtr dwUser;
/// <summary>
/// Specifies information about the buffer.
/// </summary>
public uint dwFlags;
/// <summary>
/// Specifies the number of times to play the loop.
/// </summary>
public uint dwLoops;
/// <summary>
/// Reserved. This member is used within the audio driver to maintain a first-in, first-out linked list of headers awaiting playback.
/// </summary>
public IntPtr lpNext;
/// <summary>
/// Reserved.
/// </summary>
public uint reserved;
}
}