menu
 
Version
2021.1.14.8108

2024.1.4.8780

2023.1.12.8706

2022.1.18.8567

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624


menu_open
Wwise SDK 2021.1.14
AkAudioBuffer Class Reference

#include <AkCommonDefs.h>

Public Member Functions

  AkAudioBuffer ()
  Constructor. More...
 
AkForceInline void  ClearData ()
  Clear data pointer. More...
 
AkForceInline void  Clear ()
  Clear members. More...
 
Channel queries.
AkForceInline AkUInt32  NumChannels () const
  Get the number of channels. More...
 
AkForceInline bool  HasLFE () const
  Returns true if there is an LFE channel present. More...
 
AkForceInline AkChannelConfig  GetChannelConfig () const
 
Interleaved interface
AkForceInline void *  GetInterleavedData ()
 
void  AttachInterleavedData (void *in_pData, AkUInt16 in_uMaxFrames, AkUInt16 in_uValidFrames)
  Attach interleaved data. Allocation is performed outside. More...
 
void  AttachInterleavedData (void *in_pData, AkUInt16 in_uMaxFrames, AkUInt16 in_uValidFrames, AkChannelConfig in_channelConfig)
  Attach interleaved data with a new channel config. Allocation is performed outside. More...
 

Deinterleaved interface

void *  pData
  Start of the audio buffer. More...
 
AkChannelConfig  channelConfig
  Channel config. More...
 
AkUInt16  uMaxFrames
  Number of sample frames the buffer can hold. Access through AkAudioBuffer::MaxFrames(). More...
 
AKRESULT  eState
  Execution status. More...
 
AkUInt16  uValidFrames
  Number of valid sample frames in the audio buffer. More...
 
AkForceInline bool  HasData () const
  Check if buffer has samples attached to it. More...
 
AkSampleType GetChannel (AkUInt32 in_uIndex)
 
AkSampleType GetLFE ()
 
void  ZeroPadToMaxFrames ()
 
AkForceInline void  AttachContiguousDeinterleavedData (void *in_pData, AkUInt16 in_uMaxFrames, AkUInt16 in_uValidFrames, AkChannelConfig in_channelConfig)
  Attach deinterleaved data where channels are contiguous in memory. Allocation is performed outside. More...
 
AkForceInline void *  DetachContiguousDeinterleavedData ()
  Detach deinterleaved data where channels are contiguous in memory. The address of the buffer is returned and fields are cleared. More...
 
bool  CheckValidSamples ()
 
void  RelocateMedia (AkUInt8 *in_pNewMedia, AkUInt8 *in_pOldMedia)
 
AkForceInline AkUInt16  MaxFrames () const
 
static AkUInt32  StandardToPipelineIndex (AkChannelConfig in_channelConfig, AkUInt32 in_uChannelIdx)
 

Detailed Description

Audio buffer structure including the address of an audio buffer, the number of valid frames inside, and the maximum number of frames the audio buffer can hold.

See also

Definition at line 437 of file AkCommonDefs.h.


Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise