Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39331 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -84,7 +84,7 @@ ali_stream_unprepare(ali_stream *stream)
|
|||||||
|
|
||||||
stream->channels = 0;
|
stream->channels = 0;
|
||||||
stream->format.format = 0;
|
stream->format.format = 0;
|
||||||
stream->format.rate = 0;
|
stream->format.rate = 0;
|
||||||
|
|
||||||
if (-1 < stream->used_voice) {
|
if (-1 < stream->used_voice) {
|
||||||
LOCK(stream->card->lock_voices);
|
LOCK(stream->card->lock_voices);
|
||||||
@@ -102,7 +102,7 @@ ali_stream_delete(ali_stream *stream)
|
|||||||
LOCK(stream->card->lock_sts);
|
LOCK(stream->card->lock_sts);
|
||||||
LIST_REMOVE(stream, next);
|
LIST_REMOVE(stream, next);
|
||||||
UNLOCK(stream->card->lock_sts);
|
UNLOCK(stream->card->lock_sts);
|
||||||
|
|
||||||
free(stream);
|
free(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ ali_stream_prepare(ali_stream *stream, uint8 channels, uint32 format,
|
|||||||
if ((stream->card->used_voices & (uint32) 1 << ALI_RECORD_VOICE) == 0) {
|
if ((stream->card->used_voices & (uint32) 1 << ALI_RECORD_VOICE) == 0) {
|
||||||
stream->used_voice = ALI_RECORD_VOICE;
|
stream->used_voice = ALI_RECORD_VOICE;
|
||||||
stream->card->used_voices |= (uint32) 1 << ALI_RECORD_VOICE;
|
stream->card->used_voices |= (uint32) 1 << ALI_RECORD_VOICE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (ch = 0; ch < ALI_VOICES; ch++) {
|
for (ch = 0; ch < ALI_VOICES; ch++) {
|
||||||
if ((stream->card->used_voices & (uint32) 1 << ch) == 0) {
|
if ((stream->card->used_voices & (uint32) 1 << ch) == 0) {
|
||||||
@@ -162,7 +162,7 @@ ali_stream_prepare(ali_stream *stream, uint8 channels, uint32 format,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ ali_stream_start(ali_stream *stream)
|
|||||||
TRACE("stream_start: %s using voice: %d\n",
|
TRACE("stream_start: %s using voice: %d\n",
|
||||||
stream->rec?"recording":"playing", stream->used_voice);
|
stream->rec?"recording":"playing", stream->used_voice);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -519,7 +519,7 @@ ali_audio_free(void *cookie)
|
|||||||
ali_dev *card = (ali_dev *) cookie;
|
ali_dev *card = (ali_dev *) cookie;
|
||||||
|
|
||||||
while (!LIST_EMPTY(&card->streams))
|
while (!LIST_EMPTY(&card->streams))
|
||||||
ali_stream_delete(LIST_FIRST(&card->streams));
|
ali_stream_delete(LIST_FIRST(&card->streams));
|
||||||
|
|
||||||
card->playback_stream = NULL;
|
card->playback_stream = NULL;
|
||||||
card->record_stream = NULL;
|
card->record_stream = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user