Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Relevant replacement documents include:
AUPublic/AUBase/AUOutputElement.cpp
/* |
<codex> |
<abstract>AUOutputElement.h</abstract> |
<\codex> |
*/ |
#include "AUOutputElement.h" |
#include "AUBase.h" |
AUOutputElement::AUOutputElement(AUBase *audioUnit) : |
AUIOElement(audioUnit) |
{ |
AllocateBuffer(); |
} |
OSStatus AUOutputElement::SetStreamFormat(const CAStreamBasicDescription &desc) |
{ |
OSStatus result = AUIOElement::SetStreamFormat(desc); // inherited |
if (result == AUBase::noErr) |
AllocateBuffer(); |
return result; |
} |
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-10-08