Audacity 3.2.0
Public Member Functions | List of all members
AudioUnitUtils::StreamBasicDescription Struct Reference

#include <AudioUnitUtils.h>

Inheritance diagram for AudioUnitUtils::StreamBasicDescription:
[legend]
Collaboration diagram for AudioUnitUtils::StreamBasicDescription:
[legend]

Public Member Functions

 StreamBasicDescription (Float64 sampleRate, AudioFormatID formatID, AudioFormatFlags formatFlags, UInt32 bytesPerPacket, UInt32 framesPerPacket, UInt32 bytesPerFrame, UInt32 channelsPerFrame, UInt32 bitsPerChannel)
 

Detailed Description

Definition at line 184 of file AudioUnitUtils.h.

Constructor & Destructor Documentation

◆ StreamBasicDescription()

AudioUnitUtils::StreamBasicDescription::StreamBasicDescription ( Float64  sampleRate,
AudioFormatID  formatID,
AudioFormatFlags  formatFlags,
UInt32  bytesPerPacket,
UInt32  framesPerPacket,
UInt32  bytesPerFrame,
UInt32  channelsPerFrame,
UInt32  bitsPerChannel 
)
inline

Definition at line 185 of file AudioUnitUtils.h.

190 : AudioStreamBasicDescription{} {
191 mSampleRate = sampleRate;
192 mFormatID = formatID;
193 mFormatFlags = formatFlags;
194 mBytesPerPacket = bytesPerPacket;
195 mFramesPerPacket = framesPerPacket;
196 mBytesPerFrame = bytesPerFrame;
197 mChannelsPerFrame = channelsPerFrame;
198 mBitsPerChannel = bitsPerChannel;
199 // Just padding:
200 // mReserved = 0; // But AudioStreamBasicDescription{} did that
201 }

References anonymous_namespace{ClipSegmentTest.cpp}::sampleRate.


The documentation for this struct was generated from the following file: