Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@908 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
7276f18c81
commit
23c56655af
14
rdpsnd_sgi.c
14
rdpsnd_sgi.c
@ -160,17 +160,17 @@ wave_out_set_format(WAVEFORMATEX * pwfx)
|
||||
}
|
||||
|
||||
/* Limited support to configure an opened audio port in IRIX The
|
||||
number of channels is a static setting and can not be changed after
|
||||
a port is opened. So if the number of channels remains the same, we
|
||||
can configure other settings Otherwise we have to reopen the audio
|
||||
port, using same config. */
|
||||
number of channels is a static setting and can not be changed after
|
||||
a port is opened. So if the number of channels remains the same, we
|
||||
can configure other settings Otherwise we have to reopen the audio
|
||||
port, using same config. */
|
||||
|
||||
channels = pwfx->nChannels;
|
||||
g_snd_rate = pwfx->nSamplesPerSec;
|
||||
|
||||
alSetSampFmt(audioconfig, AL_SAMPFMT_TWOSCOMP);
|
||||
alSetWidth(audioconfig, width);
|
||||
if ( channels != alGetChannels(audioconfig) )
|
||||
if (channels != alGetChannels(audioconfig))
|
||||
{
|
||||
alClosePort(output_port);
|
||||
alSetChannels(audioconfig, channels);
|
||||
@ -179,7 +179,7 @@ wave_out_set_format(WAVEFORMATEX * pwfx)
|
||||
if (output_port == (ALport) 0)
|
||||
{
|
||||
fprintf(stderr, "wave_out_set_format: alOpenPort failed: %s\n",
|
||||
alGetErrorString(oserror()));
|
||||
alGetErrorString(oserror()));
|
||||
return False;
|
||||
}
|
||||
|
||||
@ -319,7 +319,7 @@ wave_out_play(void)
|
||||
if (out->p == out->end)
|
||||
{
|
||||
gf = alGetFilled(output_port);
|
||||
if ( gf < (4 * maxFillable / 10) )
|
||||
if (gf < (4 * maxFillable / 10))
|
||||
{
|
||||
rdpsnd_send_completion(packet->tick, packet->index);
|
||||
free(out->data);
|
||||
|
Loading…
Reference in New Issue
Block a user