Split audio types into separate files
This commit is contained in:
parent
b3cab69ae9
commit
be0fcded59
5 changed files with 134 additions and 122 deletions
38
Raylib-cs/types/AudioStream.cs
Normal file
38
Raylib-cs/types/AudioStream.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs;
|
||||
|
||||
/// <summary>
|
||||
/// Audio stream type<br/>
|
||||
/// NOTE: Useful to create custom audio streams not bound to a specific file
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct AudioStream
|
||||
{
|
||||
//TODO: convert
|
||||
/// <summary>
|
||||
/// Pointer to internal data(rAudioBuffer *) used by the audio system
|
||||
/// </summary>
|
||||
public IntPtr Buffer;
|
||||
|
||||
/// <summary>
|
||||
/// Pointer to internal data processor, useful for audio effects
|
||||
/// </summary>
|
||||
public IntPtr Processor;
|
||||
|
||||
/// <summary>
|
||||
/// Frequency (samples per second)
|
||||
/// </summary>
|
||||
public uint SampleRate;
|
||||
|
||||
/// <summary>
|
||||
/// Bit depth (bits per sample): 8, 16, 32 (24 not supported)
|
||||
/// </summary>
|
||||
public uint SampleSize;
|
||||
|
||||
/// <summary>
|
||||
/// Number of channels (1-mono, 2-stereo)
|
||||
/// </summary>
|
||||
public uint Channels;
|
||||
}
|
||||
Loading…
Reference in a new issue