Skip to content

Instantly share code, notes, and snippets.

@paulius005
Created August 2, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulius005/faef6d6250323b7d3386a9a70c08f70b to your computer and use it in GitHub Desktop.
Save paulius005/faef6d6250323b7d3386a9a70c08f70b to your computer and use it in GitHub Desktop.
Catalina Beta 5 Audio CMSampleBuffer
CMTime(value: 512, timescale: 48000, flags: __C.CMTimeFlags(rawValue: 1), epoch: 0)
CMSampleBuffer 0x7f8e6a55c9f0 retainCount: 8 allocator: 0x7fff8f870920
invalid = NO
dataReady = YES
makeDataReadyCallback = 0x0
makeDataReadyRefcon = 0x0
buffer-level attachments:
com.apple.cmio.buffer_attachment.source_audio_format_description(P) = <CMAudioFormatDescription 0x7f8e6c716d90 [0x7fff8f870920]> {
mediaType:'soun'
mediaSubType:'lpcm'
mediaSpecific: {
ASBD: {
mSampleRate: 48000.000000
mFormatID: 'lpcm'
mFormatFlags: 0x9
mBytesPerPacket: 4
mFramesPerPacket: 1
mBytesPerFrame: 4
mChannelsPerFrame: 1
mBitsPerChannel: 32 }
cookie: {(null)}
ACL: {Unused}
FormatList Array: {
Index: 0
ChannelLayoutTag: 0xffff0000
ASBD: {
mSampleRate: 48000.000000
mFormatID: 'lpcm'
mFormatFlags: 0x9
mBytesPerPacket: 4
mFramesPerPacket: 1
mBytesPerFrame: 4
mChannelsPerFrame: 1
mBitsPerChannel: 32 }}
}
extensions: {(null)}
}
com.apple.cmio.buffer_attachment.sequence_number(P) = 2534
com.apple.cmio.buffer_attachment.discontinuity_flags(P) = 0
com.apple.cmio.buffer_attachment.client_sequence_id(P) = 0x7f8e6c70d2f0 : 12 : 0 : 2 : 3
com.apple.cmio.buffer_attachment.audio.core_audio_audio_time_stamp(P) = <CFData 0x7f8e6a5606f0 [0x7fff8f870920]>{length = 64, capacity = 64, bytes = 0x0000000000cc33417ce373609d010000 ... 0700000000000000}
formatDescription = <CMAudioFormatDescription 0x7f8e6a4416d0 [0x7fff8f870920]> {
mediaType:'soun'
mediaSubType:'lpcm'
mediaSpecific: {
ASBD: {
mSampleRate: 48000.000000
mFormatID: 'lpcm'
mFormatFlags: 0x29
mBytesPerPacket: 4
mFramesPerPacket: 1
mBytesPerFrame: 4
mChannelsPerFrame: 1
mBitsPerChannel: 32 }
cookie: {(null)}
ACL: {Unused}
FormatList Array: {
Index: 0
ChannelLayoutTag: 0xffff0000
ASBD: {
mSampleRate: 48000.000000
mFormatID: 'lpcm'
mFormatFlags: 0x29
mBytesPerPacket: 4
mFramesPerPacket: 1
mBytesPerFrame: 4
mChannelsPerFrame: 1
mBitsPerChannel: 32 }}
}
extensions: {(null)}
}
sbufToTrackReadiness = 0x0
numSamples = 512
outputPTS = {85221118/48000 = 1775.440, rounded}(based on cachedOutputPresentationTimeStamp)
sampleTimingArray[1] = {
{PTS = {85221118/48000 = 1775.440, rounded}, DTS = {INVALID}, duration = {1/48000 = 0.000}},
}
dataBuffer = 0x7f8e6a5586f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment