Permalink
Browse files

[osx/ios] cosmetics

  • Loading branch information...
1 parent 2e75130 commit 5cb70a4ca2c27d4973fda8fd6169d887a0935eb9 @davilla davilla committed May 19, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.cpp
@@ -734,13 +734,15 @@ void CCoreAudioAEStream::RegisterSlave(IAEStream *stream)
m_slave = stream;
}
-OSStatus CCoreAudioAEStream::Render(AudioUnitRenderActionFlags* actionFlags, const AudioTimeStamp* pTimeStamp, UInt32 busNumber, UInt32 frameCount, AudioBufferList* pBufList)
+OSStatus CCoreAudioAEStream::Render(AudioUnitRenderActionFlags* actionFlags,
+ const AudioTimeStamp* pTimeStamp, UInt32 busNumber, UInt32 frameCount, AudioBufferList* pBufList)
{
OSStatus ret = OnRender(actionFlags, pTimeStamp, busNumber, frameCount, pBufList);
return ret;
}
-OSStatus CCoreAudioAEStream::OnRender(AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData)
+OSStatus CCoreAudioAEStream::OnRender(AudioUnitRenderActionFlags *ioActionFlags,
+ const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData)
{
// if we have no valid data output silence
if (!m_valid || m_delete || !m_Buffer || m_firstInput || m_paused)
@@ -759,7 +761,8 @@ OSStatus CCoreAudioAEStream::OnRender(AudioUnitRenderActionFlags *ioActionFlags,
// the index is important if we run encoded
unsigned int outputBufferIndex = AE.GetHAL()->GetBufferIndex();
- ioData->mBuffers[outputBufferIndex].mDataByteSize = GetFrames((unsigned char *)ioData->mBuffers[outputBufferIndex].mData, size);
+ ioData->mBuffers[outputBufferIndex].mDataByteSize = GetFrames(
+ (uint8_t*)ioData->mBuffers[outputBufferIndex].mData, size);
if (!ioData->mBuffers[outputBufferIndex].mDataByteSize && ioActionFlags)
*ioActionFlags |= kAudioUnitRenderAction_OutputIsSilence;

0 comments on commit 5cb70a4

Please sign in to comment.