DMA Utility Methods

DMA utility methods defined in the shapedmacontext.h file.

In this section

GetShapeDmaAudioBuffer
Gets the audio buffer.

GetShapeDmaBufferFull
Gets the buffer full flag.

GetShapeDmaBytesPerFrame
Gets the number of bytes per frame.

GetShapeDmaChannel
Gets the current audio channel.

GetShapeDmaFloatSamples
Gets the flag that indicates whether the data is floating point or 32 bit integer.

GetShapeDmaFramesAvailable
Gets the number of frames available to read.

GetShapeDmaFramesFree
Gets the number of frames available to write.

GetShapeDmaMixBufferPeakMagnitude
Gets the peak magnitude of the DMA mix buffer.

GetShapeDmaNumChannels
Gets the number of channels in the DMA audio buffer.

GetShapeDmaNumFrames
Gets the number of DMA frames.

GetShapeDmaPeakMagnitude
Gets the peak magnitude.

GetShapeDmaReadPointer
Gets the read pointer.

GetShapeDmaReadWriteFull
Gets a 32 bit value that contains the read and write pointers and the full bit.

GetShapeDmaTimestamp
Gets the timestamp.

GetShapeDmaWritePointer
Gets the write pointer.

IncrementShapeDmaReadPointer
Increment the read pointer, updating the frame and setting the pointer to zero if the end of a frame is reached.

IncrementShapeDmaWritePointer
Increment the write pointer, updating the frame and setting the pointer to zero if the end of a frame is reached.

SetShapeDmaAudioBuffer
Sets the DMA audio buffer. This is an overloaded function, one function accepts a virtual pointer, the other the physical address.

SetShapeDmaBufferFull
Sets the buffer full flag to true or false.

SetShapeDmaChannel
Sets the current channel.

SetShapeDmaFloatSamples
Sets a flag indicating that the sample is floating point or 32 bit integer data.

SetShapeDmaNumChannels
Sets the number of channels.

SetShapeDmaNumFrames
Sets the number of frames.

SetShapeDmaReadPointer
Sets the read pointer.

SetShapeDmaReadWriteFull
Sets the read and write pointers and full bit in a single atomic operation

SetShapeDmaWritePointer
Sets the write pointer.