mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
This commit is contained in:
parent
297e80e020
commit
4dc63966f0
774 changed files with 7919 additions and 7919 deletions
|
|
@ -45,6 +45,6 @@
|
|||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <objbase.h>
|
||||
#endif // #if PLATFORM_WINDOWS
|
||||
#endif // #if PLATFORM_WINDOWS
|
||||
#endif // #ifndef __IncludeWindows_h__
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct DeviceInfo
|
|||
DeviceInfo():
|
||||
m_DeviceId(-1), m_DeviceName("Unknown"), m_MaxInputChannels(0), m_MaxOutputChannels(0)
|
||||
{};
|
||||
|
||||
|
||||
DeviceInfo(unsigned int deviceID, const std::string & deviceName):
|
||||
m_DeviceId(deviceID), m_DeviceName(deviceName), m_MaxInputChannels(0), m_MaxOutputChannels(0)
|
||||
{};
|
||||
|
|
@ -186,11 +186,11 @@ public:
|
|||
|
||||
virtual WTErr ShowConfigPanel (void *pParam);///< Show Control Panel - in case of ASIO this will work only with Active device!
|
||||
virtual WTErr SendCustomCommand (int customCommand, void *pCommandParam); ///< Send a custom command to the audiodevice...
|
||||
|
||||
|
||||
virtual uint32_t GetLatency (bool isInput); ///Get latency.
|
||||
|
||||
virtual WTErr UpdateDeviceInfo () = 0;
|
||||
|
||||
|
||||
protected:
|
||||
WCMRAudioDeviceManager *m_pMyManager; ///< The manager who's managing this device, can be used for sending notifications!
|
||||
|
||||
|
|
@ -230,7 +230,7 @@ typedef enum eAudioDeviceFilter
|
|||
class WCMRAudioDeviceManager : public WCRefManager
|
||||
{
|
||||
public://< Public functions for the class.
|
||||
|
||||
|
||||
WCMRAudioDeviceManager(WCMRAudioDeviceManagerClient *pTheClient, eAudioDeviceFilter eCurAudioDeviceFilter); ///< constructor
|
||||
virtual ~WCMRAudioDeviceManager(void); ///< Destructor
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ public://< Public functions for the class.
|
|||
void NotifyClient (WCMRAudioDeviceManagerClient::NotificationReason forReason, void *pParam = NULL);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
mutable wvNS::wvThread::ThreadMutex m_AudioDeviceInfoVecMutex; // mutex to lock device info list
|
||||
DeviceInfoVec m_DeviceInfoVec;
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ private:
|
|||
virtual WTErr getDeviceBufferSizesImpl(const std::string & deviceName, std::vector<int>& bufferSizes) const = 0;
|
||||
virtual WTErr generateDeviceListImpl() = 0;
|
||||
virtual WTErr updateDeviceListImpl() = 0;
|
||||
|
||||
|
||||
WCMRAudioDeviceManagerClient *m_pTheClient; ///< The device manager's client, used to send notifications.
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include <mach/mach.h>
|
||||
|
||||
#include <CoreAudio/CoreAudio.h>
|
||||
#include <CoreAudio/CoreAudio.h>
|
||||
|
||||
//forward decl.
|
||||
class WCMRCoreAudioDeviceManager;
|
||||
|
|
@ -47,9 +47,9 @@ class WCMRCoreAudioDeviceManager;
|
|||
// This enum is for choosing filter for audio devices scan
|
||||
typedef enum eCABS_Method
|
||||
{
|
||||
eCABS_Simple = 0,
|
||||
eCABS_Simple = 0,
|
||||
eCABS_DestructiveCache,
|
||||
eCABS_CacheOnDeviceSet,
|
||||
eCABS_CacheOnDeviceSet,
|
||||
eCABS_MethodNum // Must be last
|
||||
} eCABS_Method;
|
||||
|
||||
|
|
@ -65,8 +65,8 @@ public:
|
|||
virtual const std::string& DeviceName() const;///<Name?
|
||||
virtual const std::vector<std::string>& InputChannels();///<Current Input Channel List? - note that this may change with change in sampling rate.
|
||||
virtual const std::vector<std::string>& OutputChannels();///<Current Output Channel List? - note that this may change with change in sampling rate.
|
||||
|
||||
|
||||
|
||||
|
||||
virtual const std::vector<int>& SamplingRates();///<Supported Sampling Rate List?
|
||||
virtual int CurrentSamplingRate(); ///<Current Sampling rate.?
|
||||
virtual WTErr SetCurrentSamplingRate(int newRate);///<Change Current Sampling Rate : This is a requset, might not be successful at run time!
|
||||
|
|
@ -90,11 +90,11 @@ public:
|
|||
virtual int AudioCallback (float *pOutputBuffer, unsigned long framesPerBuffer, int64_t inSampleTime, uint64_t inCycleStartTime);
|
||||
|
||||
AudioDeviceID DeviceID () {return m_DeviceID;}
|
||||
|
||||
|
||||
virtual uint32_t GetLatency (bool isInput); ///< Get latency.
|
||||
virtual OSStatus GetStreamLatency(AudioDeviceID deviceID, bool isInput, std::vector<int>& latencies);
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
AudioDeviceID m_DeviceID; ///< The CoreAudio device id
|
||||
|
|
@ -186,23 +186,23 @@ public:
|
|||
|
||||
protected:
|
||||
static OSStatus HardwarePropertyChangeCallback (AudioHardwarePropertyID inPropertyID, void* inClientData);
|
||||
|
||||
|
||||
virtual WCMRAudioDevice* initNewCurrentDeviceImpl(const std::string & deviceName);
|
||||
virtual void destroyCurrentDeviceImpl();
|
||||
virtual WTErr generateDeviceListImpl();
|
||||
virtual WTErr updateDeviceListImpl();
|
||||
virtual WTErr getDeviceSampleRatesImpl(const std::string & deviceName, std::vector<int>& sampleRates) const;
|
||||
virtual WTErr getDeviceBufferSizesImpl(const std::string & deviceName, std::vector<int>& bufferSizes) const;
|
||||
|
||||
|
||||
bool m_UseMultithreading; ///< Flag indicates whether to use multi-threading for audio processing.
|
||||
bool m_bNoCopyAudioBuffer;
|
||||
|
||||
|
||||
private:
|
||||
// helper functions for this class only
|
||||
WTErr getDeviceAvailableSampleRates(DeviceID deviceId, std::vector<int>& sampleRates);
|
||||
WTErr getDeviceMaxInputChannels(DeviceID deviceId, unsigned int& inputChannels);
|
||||
WTErr getDeviceMaxOutputChannels(DeviceID deviceId, unsigned int& outputChannels);
|
||||
|
||||
|
||||
WCMRAudioDevice* m_NoneDevice;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ protected:
|
|||
PaError testStateValidness(int sampleRate, int bufferSize);
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
static int TheCallback (const void *pInputBuffer, void *pOutputBuffer, unsigned long framesPerBuffer,
|
||||
static int TheCallback (const void *pInputBuffer, void *pOutputBuffer, unsigned long framesPerBuffer,
|
||||
const PaStreamCallbackTimeInfo* /*pTimeInfo*/, PaStreamCallbackFlags /*statusFlags*/, void *pUserData );
|
||||
|
||||
unsigned int m_DeviceID; ///< The PA device id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue