mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
ao_pcm: Remove some disabled and pointless code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31686 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ce19a13986
commit
5deeba5f6a
@ -253,18 +253,6 @@ static int get_space(void){
|
||||
// return: number of bytes played
|
||||
static int play(void* data,int len,int flags){
|
||||
|
||||
// let libaf to do the conversion...
|
||||
#if 0
|
||||
//#if HAVE_BIGENDIAN
|
||||
if (ao_data.format == AFMT_S16_LE) {
|
||||
unsigned short *buffer = (unsigned short *) data;
|
||||
register int i;
|
||||
for(i = 0; i < len/2; ++i) {
|
||||
buffer[i] = le2me_16(buffer[i]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ao_data.channels == 5 || ao_data.channels == 6 || ao_data.channels == 8) {
|
||||
int frame_size = af_fmt2bits(ao_data.format) / 8;
|
||||
len -= len % (frame_size * ao_data.channels);
|
||||
|
Loading…
Reference in New Issue
Block a user