Skip to content

Introduced render notification cb for average and max timing reports#4

Closed
32Beat wants to merge 1 commit into
TheAmazingAudioEngine:masterfrom
32Beat:reporting
Closed

Introduced render notification cb for average and max timing reports#4
32Beat wants to merge 1 commit into
TheAmazingAudioEngine:masterfrom
32Beat:reporting

Conversation

@32Beat
Copy link
Copy Markdown

@32Beat 32Beat commented Apr 12, 2016

No description provided.

UInt32 inNumberFrames,
AudioBufferList * __nullable ioData)
{
static UInt64 startTime = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There can be multiple IO units in the same process, so these variables should rather be instance variables.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's how Michael had it initially, but eventually I decided statics, because it is easier to copy-paste the code. Having said that, for public code, it probably is better to encapsulate it in an object or struct, but I prefer it not to be part of the actual module.

@michaeltyson
Copy link
Copy Markdown
Collaborator

Implemented in SHA 9b83661 with some modifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants