diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libao2/ao_dxr2.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libao2/ao_dxr2.c')
-rw-r--r-- | libao2/ao_dxr2.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libao2/ao_dxr2.c b/libao2/ao_dxr2.c index 51cd1a0d01..e8aa65aab5 100644 --- a/libao2/ao_dxr2.c +++ b/libao2/ao_dxr2.c @@ -67,7 +67,7 @@ static int control(int cmd,void *arg){ 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 @@ static int init(int rate,int channels,int format,int flags){ return 0; last_freq_id = -1; - + ao_data.outburst=2048; ao_data.samplerate=rate; ao_data.channels=channels; @@ -178,11 +178,11 @@ static int get_space(void){ 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); @@ -220,4 +220,3 @@ static float get_delay(void){ return 0.0; } - |