output/oss: use the *_NE macros
Removed the macro AFMT_S16_MPD.
This commit is contained in:
parent
bead892e21
commit
5fa1c703de
@ -40,12 +40,6 @@
|
|||||||
# include <sys/soundcard.h>
|
# include <sys/soundcard.h>
|
||||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||||
|
|
||||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
|
||||||
# define AFMT_S16_MPD AFMT_S16_BE
|
|
||||||
#else
|
|
||||||
# define AFMT_S16_MPD AFMT_S16_LE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct oss_data {
|
struct oss_data {
|
||||||
int fd;
|
int fd;
|
||||||
const char *device;
|
const char *device;
|
||||||
@ -496,13 +490,13 @@ oss_setup(struct oss_data *od, GError **error)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SAMPLE_FORMAT_S16:
|
case SAMPLE_FORMAT_S16:
|
||||||
tmp = AFMT_S16_MPD;
|
tmp = AFMT_S16_NE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* not supported by OSS - fall back to 16 bit */
|
/* not supported by OSS - fall back to 16 bit */
|
||||||
od->audio_format.format = SAMPLE_FORMAT_S16;
|
od->audio_format.format = SAMPLE_FORMAT_S16;
|
||||||
tmp = AFMT_S16_MPD;
|
tmp = AFMT_S16_NE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user