31 OUT UINT8 **RawBuffer,
32 OUT UINT32 *RawBufferSize,
45 return EFI_UNSUPPORTED;
60 return EFI_UNSUPPORTED;
66 BufferEnd =
Buffer + BufferSize;
71 while (BufferEnd - BufferPtr >=
sizeof (
RIFF_CHUNK)) {
77 if ((UINT64)TmpChunk->
Size + sizeof (
RIFF_CHUNK) > (UINTN)(BufferEnd - BufferPtr)) {
78 return EFI_INVALID_PARAMETER;
83 return EFI_INVALID_PARAMETER;
91 if ((WaveFormat != NULL) && (DataChunk != NULL)) {
98 if ((WaveFormat == NULL) || (DataChunk == NULL)) {
99 return EFI_UNSUPPORTED;
102 *RawBuffer = DataChunk->
Data;
103 *RawBufferSize = DataChunk->
Size;
137 return EFI_UNSUPPORTED;
157 return EFI_UNSUPPORTED;
160 *Channels = (UINT8)WaveFormat->
Channels;
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)