whitespace fixes
remove trailing spaces & expand tabs. Change-Id: I05ef110abed90f13b47752760ffb4567a11a6a5e Reviewed-by: Yoann Lopes <yoann.lopes@digia.com> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
b690a4d902
commit
5980bc41cf
@@ -166,7 +166,7 @@ bool QAudioDeviceInfoInternal::open()
|
|||||||
|
|
||||||
QString shortName = device.mid(device.indexOf(QLatin1String("="),0)+1);
|
QString shortName = device.mid(device.indexOf(QLatin1String("="),0)+1);
|
||||||
|
|
||||||
while(snd_card_get_name(idx,&name) == 0) {
|
while (snd_card_get_name(idx,&name) == 0) {
|
||||||
if(dev.contains(QLatin1String(name)))
|
if(dev.contains(QLatin1String(name)))
|
||||||
break;
|
break;
|
||||||
idx++;
|
idx++;
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ bool QAudioOutputPrivate::open()
|
|||||||
|
|
||||||
QString shortName = QLatin1String(m_device.mid(m_device.indexOf('=',0)+1).constData());
|
QString shortName = QLatin1String(m_device.mid(m_device.indexOf('=',0)+1).constData());
|
||||||
|
|
||||||
while(snd_card_get_name(idx,&name) == 0) {
|
while (snd_card_get_name(idx,&name) == 0) {
|
||||||
if(qstrncmp(shortName.toLocal8Bit().constData(),name,shortName.length()) == 0)
|
if(qstrncmp(shortName.toLocal8Bit().constData(),name,shortName.length()) == 0)
|
||||||
break;
|
break;
|
||||||
idx++;
|
idx++;
|
||||||
|
|||||||
@@ -595,14 +595,14 @@ bool QAudioOutputPrivate::deviceReady()
|
|||||||
bool full=false;
|
bool full=false;
|
||||||
|
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
if(waveFreeBlockCount==0) full = true;
|
if (waveFreeBlockCount==0) full = true;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|
||||||
if (full){
|
if (full) {
|
||||||
#ifdef DEBUG_AUDIO
|
#ifdef DEBUG_AUDIO
|
||||||
qDebug() << "Skipping data as unable to write";
|
qDebug() << "Skipping data as unable to write";
|
||||||
#endif
|
#endif
|
||||||
if((timeStamp.elapsed() + elapsedTimeOffset) > intervalTime ) {
|
if ((timeStamp.elapsed() + elapsedTimeOffset) > intervalTime) {
|
||||||
emit notify();
|
emit notify();
|
||||||
elapsedTimeOffset = timeStamp.elapsed() + elapsedTimeOffset - intervalTime;
|
elapsedTimeOffset = timeStamp.elapsed() + elapsedTimeOffset - intervalTime;
|
||||||
timeStamp.restart();
|
timeStamp.restart();
|
||||||
@@ -626,7 +626,7 @@ bool QAudioOutputPrivate::deviceReady()
|
|||||||
// Didn't write all data
|
// Didn't write all data
|
||||||
audioSource->seek(audioSource->pos()-(l-out));
|
audioSource->seek(audioSource->pos()-(l-out));
|
||||||
}
|
}
|
||||||
if(startup)
|
if (startup)
|
||||||
waveOutRestart(hWaveOut);
|
waveOutRestart(hWaveOut);
|
||||||
} else if(l == 0) {
|
} else if(l == 0) {
|
||||||
bytesAvailable = bytesFree();
|
bytesAvailable = bytesFree();
|
||||||
|
|||||||
Reference in New Issue
Block a user