버전

menu_open
Wwise SDK 2024.1.1
AkWavDefs.h
이 파일의 문서화 페이지로 가기
1 /*******************************************************************************
2 The content of this file includes portions of the AUDIOKINETIC Wwise Technology
3 released in source code form as part of the SDK installer package.
4 
5 Commercial License Usage
6 
7 Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
8 may use this file in accordance with the end user license agreement provided
9 with the software or, alternatively, in accordance with the terms contained in a
10 written agreement between you and Audiokinetic Inc.
11 
12 Apache License Usage
13 
14 Alternatively, this file may be used under the Apache License, Version 2.0 (the
15 "Apache License"); you may not use this file except in compliance with the
16 Apache License. You may obtain a copy of the Apache License at
17 http://www.apache.org/licenses/LICENSE-2.0.
18 
19 Unless required by applicable law or agreed to in writing, software distributed
20 under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
21 OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
22 the specific language governing permissions and limitations under the License.
23 
24  Copyright (c) 2024 Audiokinetic Inc.
25 *******************************************************************************/
26 
27 #pragma once
28 
29 /// \file
30 /// Basic definitions for WAV / WEM file parsers.
31 
34 
35 //-----------------------------------------------------------------------------
36 // Constants.
37 //-----------------------------------------------------------------------------
38 
39 // Standard IDs
40 constexpr AkFourcc RIFXChunkId = AkmmioFOURCC('R', 'I', 'F', 'X');
41 constexpr AkFourcc RIFFChunkId = AkmmioFOURCC('R', 'I', 'F', 'F');
42 constexpr AkFourcc RF64ChunkId = AkmmioFOURCC('R', 'F', '6', '4');
43 constexpr AkFourcc BW64ChunkId = AkmmioFOURCC('B', 'W', '6', '4');
44 constexpr AkFourcc ds64ChunkId = AkmmioFOURCC('d', 's', '6', '4');
45 constexpr AkFourcc WAVEChunkId = AkmmioFOURCC('W', 'A', 'V', 'E');
46 constexpr AkFourcc PLUGINChunkId = AkmmioFOURCC('P', 'L', 'U', 'G');
47 constexpr AkFourcc MIDIChunkId = AkmmioFOURCC('M', 'I', 'D', 'I');
48 constexpr AkFourcc fmtChunkId = AkmmioFOURCC('f', 'm', 't', ' ');
49 constexpr AkFourcc dataChunkId = AkmmioFOURCC('d', 'a', 't', 'a');
50 constexpr AkFourcc cueChunkId = AkmmioFOURCC('c', 'u', 'e', ' ');
51 constexpr AkFourcc LISTChunkId = AkmmioFOURCC('L', 'I', 'S', 'T');
52 constexpr AkFourcc adtlChunkId = AkmmioFOURCC('a', 'd', 't', 'l');
53 constexpr AkFourcc lablChunkId = AkmmioFOURCC('l', 'a', 'b', 'l');
54 constexpr AkFourcc smplChunkId = AkmmioFOURCC('s', 'm', 'p', 'l');
55 constexpr AkFourcc junkChunkId = AkmmioFOURCC('j', 'u', 'n', 'k');
56 constexpr AkFourcc axmlChunkId = AkmmioFOURCC('a', 'x', 'm', 'l');
57 constexpr AkFourcc chnaChunkId = AkmmioFOURCC('c', 'h', 'n', 'a');
58 
59 // AK-specific IDs
60 constexpr AkFourcc akdChunkId = AkmmioFOURCC('a', 'k', 'd', ' ');
61 constexpr AkFourcc hashChunkId = AkmmioFOURCC('h', 'a', 's', 'h');
62 constexpr AkFourcc seekChunkId = AkmmioFOURCC('s', 'e', 'e', 'k');
63 constexpr AkFourcc irmdChunkId = AkmmioFOURCC('i', 'r', 'm', 'd');
64 constexpr AkFourcc akdmChunkId = AkmmioFOURCC('a', 'k', 'd', 'm');
65 
66 //-----------------------------------------------------------------------------
67 // Structs.
68 //-----------------------------------------------------------------------------
69 
70 #pragma pack(push, 1)
71 
72 /// Standard WAV chunk header
74 {
77 };
78 
79 /// Standard WAV format header
81 {
88  AkUInt16 cbSize; // size of extra chunk of data, after end of this struct
89 };
90 
91 /// WEM format header: equivalent to WAVEFORMATEXTENSIBLE, with an AkChannelConfig
92 /// instead of dwChannelMask+SubFormat. Codecs that require format-specific chunks
93 /// should extend this structure.
95 {
97  AkUInt32 uChannelConfig; // Serialized AkChannelConfig
98 
100  {
101  AkChannelConfig channelConfig;
102  channelConfig.Deserialize(uChannelConfig);
103  return channelConfig;
104  }
105 };
106 static_assert(sizeof(WaveFormatExtensible) == 24, "Incorrect padding for WaveFormatExtensible");
107 
108 #pragma pack(pop)
AkUInt16 nBlockAlign
Definition: AkWavDefs.h:86
constexpr AkFourcc MIDIChunkId
Definition: AkWavDefs.h:47
uint16_t AkUInt16
Unsigned 16-bit integer
constexpr AkFourcc fmtChunkId
Definition: AkWavDefs.h:48
constexpr AkFourcc hashChunkId
Definition: AkWavDefs.h:61
constexpr AkFourcc RF64ChunkId
Definition: AkWavDefs.h:42
constexpr AkFourcc dataChunkId
Definition: AkWavDefs.h:49
AkUInt16 wBitsPerSample
Definition: AkWavDefs.h:87
AkUInt16 nChannels
Definition: AkWavDefs.h:83
constexpr AkFourcc cueChunkId
Definition: AkWavDefs.h:50
AkUInt16 wFormatTag
Definition: AkWavDefs.h:82
constexpr AkFourcc ds64ChunkId
Definition: AkWavDefs.h:44
AkUInt16 wSamplesPerBlock
Definition: AkWavDefs.h:96
AkUInt32 nAvgBytesPerSec
Definition: AkWavDefs.h:85
constexpr AkFourcc junkChunkId
Definition: AkWavDefs.h:55
constexpr AkFourcc RIFXChunkId
Definition: AkWavDefs.h:40
constexpr AkFourcc RIFFChunkId
Definition: AkWavDefs.h:41
AkUInt32 uChannelConfig
Definition: AkWavDefs.h:97
constexpr AkFourcc akdmChunkId
Definition: AkWavDefs.h:64
constexpr AkFourcc irmdChunkId
Definition: AkWavDefs.h:63
constexpr AkFourcc PLUGINChunkId
Definition: AkWavDefs.h:46
AkUInt32 dwChunkSize
Definition: AkWavDefs.h:76
constexpr AkFourcc smplChunkId
Definition: AkWavDefs.h:54
constexpr AkFourcc WAVEChunkId
Definition: AkWavDefs.h:45
Standard WAV format header
Definition: AkWavDefs.h:81
constexpr AkFourcc LISTChunkId
Definition: AkWavDefs.h:51
Standard WAV chunk header
Definition: AkWavDefs.h:74
constexpr AkFourcc akdChunkId
Definition: AkWavDefs.h:60
AkFourcc ChunkId
Definition: AkWavDefs.h:75
constexpr AkFourcc chnaChunkId
Definition: AkWavDefs.h:57
AkUInt16 cbSize
Definition: AkWavDefs.h:88
constexpr AkFourcc seekChunkId
Definition: AkWavDefs.h:62
constexpr AkFourcc lablChunkId
Definition: AkWavDefs.h:53
AkUInt32 nSamplesPerSec
Definition: AkWavDefs.h:84
uint32_t AkUInt32
Unsigned 32-bit integer
#define AkmmioFOURCC(ch0, ch1, ch2, ch3)
Create Riff chunk
Definition: AkTypes.h:87
constexpr AkFourcc BW64ChunkId
Definition: AkWavDefs.h:43
AkUInt32 AkFourcc
Riff chunk
Definition: AkTypes.h:84
constexpr AkFourcc adtlChunkId
Definition: AkWavDefs.h:52
AkChannelConfig GetChannelConfig() const
Definition: AkWavDefs.h:99
AkForceInline void Deserialize(AkUInt32 in_uChannelConfig)
Deserialize channel config from a 32-bit word.
constexpr AkFourcc axmlChunkId
Definition: AkWavDefs.h:56

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요