devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputMessageHandler/src/RestrictedAudioOutputMessageHandler.cpp
changeset 4 9d4397b300d1
parent 0 b8ed18f6c07b
equal deleted inserted replaced
1:fcaf4606ba4e 4:9d4397b300d1
    37 // Two-phased constructor.
    37 // Two-phased constructor.
    38 EXPORT_C CRestrictedAudioOutputMessageHandler* CRestrictedAudioOutputMessageHandler::NewL(TAny* aCustomInterface)
    38 EXPORT_C CRestrictedAudioOutputMessageHandler* CRestrictedAudioOutputMessageHandler::NewL(TAny* aCustomInterface)
    39     {
    39     {
    40     CRestrictedAudioOutput* audioOutput = (CRestrictedAudioOutput*)aCustomInterface;
    40     CRestrictedAudioOutput* audioOutput = (CRestrictedAudioOutput*)aCustomInterface;
    41     CRestrictedAudioOutputMessageHandler* self = new (ELeave) CRestrictedAudioOutputMessageHandler(audioOutput);
    41     CRestrictedAudioOutputMessageHandler* self = new (ELeave) CRestrictedAudioOutputMessageHandler(audioOutput);
    42 
    42     CleanupStack::PushL(self);
    43 	self->ConstructL();
    43 	self->ConstructL();
       
    44 	CleanupStack::Pop(self);
    44     return self;
    45     return self;
    45     }
    46     }
    46     
    47     
    47 // -----------------------------------------------------------------------------
    48 // -----------------------------------------------------------------------------
    48 // CRestrictedAudioOutputMessageHandler::ConstructL
    49 // CRestrictedAudioOutputMessageHandler::ConstructL