Skip to content

Incorrect function signature for AudioBufferDeinterleave and AudioBufferInterleave #7

@Quantum-cross

Description

@Quantum-cross

/// <summary>
/// Reads samples from an audio buffer and interleaves them into a user-provided array.
/// </summary>
/// <param name="context">The context used to initialize Steam Audio.</param>
/// <param name="src">The audio buffer to read from.</param>
/// <param name="dst">The interleaved array to write into.</param>
[DllImport(Library, EntryPoint = "iplAudioBufferInterleave", CallingConvention = CallingConvention.Cdecl)]
public static extern void AudioBufferInterleave(IPL.Context context, in IPL.AudioBuffer src, in float dst);
/// <summary>
/// Writes interleaved samples from a user-provided array into an audio buffer.
/// </summary>
/// <param name="context">The context used to initialize Steam Audio.</param>
/// <param name="src">The interleaved array to read from.</param>
/// <param name="dst">The audio buffer to write into.</param>
[DllImport(Library, EntryPoint = "iplAudioBufferDeinterleave", CallingConvention = CallingConvention.Cdecl)]
public static extern void AudioBufferDeinterleave(IPL.Context context, in float src, in IPL.AudioBuffer dst);

These should be float pointers, not floats

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions