mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
whitespace and comment cleanup.
This commit is contained in:
parent
f21ad90ba4
commit
964ec6425d
2 changed files with 16 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue