Mercurial > mplayer.hg
diff libao2/ao_dxr2.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 9a5b8c2ed6de |
children | f01023c524c3 |
line wrap: on
line diff
--- a/libao2/ao_dxr2.c Tue May 12 19:25:35 2009 +0000 +++ b/libao2/ao_dxr2.c Wed May 13 02:58:57 2009 +0000 @@ -67,7 +67,7 @@ ao_control_vol_t* vol = (ao_control_vol_t*)arg; // We need this trick because the volume stepping is often too small diff = ((vol->left+vol->right) / 2 - (volume*19.0/100.0)) * 19.0 / 100.0; - v.arg = volume + (diff > 0 ? ceil(diff) : floor(diff)); + v.arg = volume + (diff > 0 ? ceil(diff) : floor(diff)); if(v.arg > 19) v.arg = 19; if(v.arg < 0) v.arg = 0; if(v.arg != volume) { @@ -95,7 +95,7 @@ return 0; last_freq_id = -1; - + ao_data.outburst=2048; ao_data.samplerate=rate; ao_data.channels=channels; @@ -178,11 +178,11 @@ static void dxr2_send_lpcm_packet(unsigned char* data,int len,int id,unsigned int timestamp,int freq_id) { int write_dxr2(const unsigned char *data, int len); - + if(dxr2_fd < 0) { mp_msg(MSGT_AO,MSGL_ERR,"DXR2 fd is not valid\n"); return; - } + } if(last_freq_id != freq_id) { ioctl(dxr2_fd, DXR2_IOC_SET_AUDIO_SAMPLE_FREQUENCY, &freq_id);