OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcWaveLib.h File Reference
#include <Protocol/AudioIo.h>

Go to the source code of this file.

Functions

EFI_STATUS OcDecodeWave (IN UINT8 *Buffer, IN UINTN BufferSize, OUT UINT8 **RawBuffer, OUT UINT32 *RawBufferSize, OUT EFI_AUDIO_IO_PROTOCOL_FREQ *Frequency, OUT EFI_AUDIO_IO_PROTOCOL_BITS *Bits, OUT UINT8 *Channels)
 

Detailed Description

Copyright (C) 2021, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file OcWaveLib.h.

Function Documentation

◆ OcDecodeWave()

EFI_STATUS OcDecodeWave ( IN UINT8 * Buffer,
IN UINTN BufferSize,
OUT UINT8 ** RawBuffer,
OUT UINT32 * RawBufferSize,
OUT EFI_AUDIO_IO_PROTOCOL_FREQ * Frequency,
OUT EFI_AUDIO_IO_PROTOCOL_BITS * Bits,
OUT UINT8 * Channels )

Decode WAVE audio to PCM audio.

Parameters
[in]BufferBuffer with mp3 audio data.
[in]BufferSizeBuffer size in bytes.
[out]RawBufferDecoded PCM data pointing to Buffer.
[out]RawBufferSizeDecoded PCM data size in bytes.
[out]FrequencyDecoded PCM frequency.
[out]BitsDecoded bit count.
[out]ChannelsDecoded amount of channels.
Return values
EFI_SUCCESSon success.
EFI_UNSUPPORTEDon format mismatch.
EFI_OUT_OF_RESOURCESon memory allocation failure.

Definition at line 28 of file OcWaveLib.c.