mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
NOOP, remove trailing tabs/whitespace.
This commit is contained in:
parent
e11ba7b79d
commit
22b07e0233
822 changed files with 6861 additions and 6861 deletions
|
|
@ -106,7 +106,7 @@ WTErr WCMRNativeAudioNoneDevice::SetCurrentBufferSize (int newSize)
|
|||
//same size, nothing to do.
|
||||
if (oldSize == newSize)
|
||||
return eNoErr;
|
||||
|
||||
|
||||
//see if this is one of our supported rates...
|
||||
std::vector<int>::iterator intIter = find(m_BufferSizes.begin(), m_BufferSizes.end(), newSize);
|
||||
if (intIter == m_BufferSizes.end())
|
||||
|
|
@ -114,14 +114,14 @@ WTErr WCMRNativeAudioNoneDevice::SetCurrentBufferSize (int newSize)
|
|||
//Can't change, perhaps use an "invalid param" type of error
|
||||
return eCommandLineParameter;
|
||||
}
|
||||
|
||||
|
||||
if (Streaming())
|
||||
{
|
||||
//Can't change, perhaps use an "in use" type of error
|
||||
return eGenericErr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return WCMRAudioDevice::SetCurrentBufferSize(newSize);
|
||||
}
|
||||
|
||||
|
|
@ -211,15 +211,15 @@ void WCMRNativeAudioNoneDevice::_SilenceThread()
|
|||
|
||||
// VERY ROUGH IMPLEMENTATION:
|
||||
while(Streaming()) {
|
||||
|
||||
|
||||
uint64_t cycleEndTimeNanos = audioCallbackData.acdCycleStartTimeNanos + cyclePeriodNanos;
|
||||
|
||||
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::AudioCallback, (void *)&audioCallbackData);
|
||||
|
||||
|
||||
audioCallbackData.acdSampleTime += buffer_size;
|
||||
|
||||
|
||||
int64_t timeToSleepUsecs = ((int64_t)cycleEndTimeNanos - (int64_t)__get_time_nanos())/1000;
|
||||
|
||||
|
||||
if (timeToSleepUsecs > 0) {
|
||||
_usleep (timeToSleepUsecs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue