From 964ec6425d3196e37769de22fcb8983e0c5cd929 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Thu, 24 May 2001 17:00:08 +0000 Subject: [PATCH] whitespace and comment cleanup. --- libs/audio/targets/snd_alsa_0_9.c | 18 +++++++++++------- libs/audio/targets/snd_sgi.c | 6 +++++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/libs/audio/targets/snd_alsa_0_9.c b/libs/audio/targets/snd_alsa_0_9.c index d3121265f..94f74b0f4 100644 --- a/libs/audio/targets/snd_alsa_0_9.c +++ b/libs/audio/targets/snd_alsa_0_9.c @@ -74,6 +74,7 @@ void I_S_EndPrecaching (void); void I_S_ExtraUpdate (void); void I_S_LocalSound (char *s); + qboolean SNDDMA_Init (void) { @@ -222,12 +223,8 @@ SNDDMA_Init (void) memset ((dma_t *) shm, 0, sizeof (*shm)); shm->splitbuffer = 0; shm->channels = stereo + 1; - shm->submission_chunk = snd_pcm_hw_params_get_period_size (hw, 0); // don't - // mix - // less - // than - // this - // # + shm->submission_chunk = snd_pcm_hw_params_get_period_size (hw, 0); // don't + // mix less than this # shm->samplepos = 0; // in mono samples shm->samplebits = bps; buffer_size = snd_pcm_hw_params_get_buffer_size (hw); @@ -251,6 +248,7 @@ SNDDMA_Init (void) return 0; } + int SNDDMA_GetDMAPos (void) { @@ -269,6 +267,7 @@ SNDDMA_GetDMAPos (void) return shm->samplepos; } + void SNDDMA_Shutdown (void) { @@ -278,6 +277,7 @@ SNDDMA_Shutdown (void) } } + /* SNDDMA_Submit @@ -310,6 +310,8 @@ SNDDMA_Submit (void) break; } } + + plugin_t * PluginInfo (void) { plugin_info.type = qfp_sound; @@ -317,7 +319,9 @@ PluginInfo (void) { plugin_info.plugin_version = "0.1"; plugin_info.description = "ALSA 0.9.x digital output"; plugin_info.copyright = "Copyright (C) 1996-1997 id Software, Inc.\n" - "Copyright (C) 1999,2000,2001 contributors of the QuakeForge project\n" "Please see the file \"AUTHORS\" for a list of contributors"; + "Copyright (C) 1999,2000,2001 contributors of the QuakeForge" + " project\n" + "Please see the file \"AUTHORS\" for a list of contributors"; plugin_info.functions = &plugin_info_funcs; plugin_info.data = &plugin_info_data; diff --git a/libs/audio/targets/snd_sgi.c b/libs/audio/targets/snd_sgi.c index 038dd7c15..ad1aa430e 100644 --- a/libs/audio/targets/snd_sgi.c +++ b/libs/audio/targets/snd_sgi.c @@ -76,6 +76,7 @@ void I_S_EndPrecaching (void); void I_S_ExtraUpdate (void); void I_S_LocalSound (char *s); + qboolean SNDDMA_Init (void) { @@ -271,6 +272,7 @@ SNDDMA_Init (void) return 1; } + int SNDDMA_GetDMAPos (void) { @@ -281,6 +283,7 @@ SNDDMA_GetDMAPos (void) return shm->samplepos; } + void SNDDMA_Shutdown (void) { @@ -293,6 +296,7 @@ SNDDMA_Shutdown (void) } } + /* SNDDMA_Submit @@ -335,6 +339,7 @@ SNDDMA_Submit (void) framecount += bytes / bsize; } + plugin_t * PluginInfo (void) { plugin_info.type = qfp_sound; @@ -375,4 +380,3 @@ PluginInfo (void) { return &plugin_info; } -/* end of file */