mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 03:37:27 +00:00
Use AF_FORMAT_S16_NE instead of #ifdef WORDS_BIGENDIAN ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14405 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
06d4538217
commit
0ec7a2ca21
@ -283,20 +283,15 @@ ac3_retry:
|
|||||||
if (oss_format == -1) {
|
if (oss_format == -1) {
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
oss_format=AFMT_S16_BE;
|
oss_format=AFMT_S16_BE;
|
||||||
format=AF_FORMAT_S16_BE;
|
|
||||||
#else
|
#else
|
||||||
oss_format=AFMT_S16_LE;
|
oss_format=AFMT_S16_LE;
|
||||||
format=AF_FORMAT_S16_LE;
|
|
||||||
#endif
|
#endif
|
||||||
|
format=AF_FORMAT_S16_NE;
|
||||||
}
|
}
|
||||||
if( ioctl(audio_fd, SNDCTL_DSP_SETFMT, &oss_format)<0 ||
|
if( ioctl(audio_fd, SNDCTL_DSP_SETFMT, &oss_format)<0 ||
|
||||||
oss_format != format2oss(format)) if(format == AF_FORMAT_AC3){
|
oss_format != format2oss(format)) if(format == AF_FORMAT_AC3){
|
||||||
mp_msg(MSGT_AO,MSGL_WARN, MSGTR_AO_OSS_CantSetAC3, dsp);
|
mp_msg(MSGT_AO,MSGL_WARN, MSGTR_AO_OSS_CantSetAC3, dsp);
|
||||||
#ifdef WORDS_BIGENDIAN
|
format=AF_FORMAT_S16_NE;
|
||||||
format=AF_FORMAT_S16_BE;
|
|
||||||
#else
|
|
||||||
format=AF_FORMAT_S16_LE;
|
|
||||||
#endif
|
|
||||||
goto ac3_retry;
|
goto ac3_retry;
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user