mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(tinyalsa) Big endian support.
This commit is contained in:
parent
36f700927e
commit
5ba36ad3a1
@ -62,6 +62,7 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
|
#include <retro_endianness.h>
|
||||||
|
|
||||||
#include "../audio_driver.h"
|
#include "../audio_driver.h"
|
||||||
#include "../../verbosity.h"
|
#include "../../verbosity.h"
|
||||||
@ -2193,14 +2194,15 @@ static void * tinyalsa_init(const char *devicestr, unsigned rate,
|
|||||||
if (orig_rate != rate)
|
if (orig_rate != rate)
|
||||||
*new_rate = rate;
|
*new_rate = rate;
|
||||||
|
|
||||||
config.rate = rate;
|
config.rate = rate;
|
||||||
config.format = PCM_FORMAT_S16_LE;
|
config.format = is_little_endian() ?\
|
||||||
config.channels = 2;
|
PCM_FORMAT_S16_LE : PCM_FORMAT_S16_BE;
|
||||||
config.period_size = 1024;
|
config.channels = 2;
|
||||||
config.period_count = 2;
|
config.period_size = 1024;
|
||||||
config.start_threshold = 1024;
|
config.period_count = 2;
|
||||||
config.stop_threshold = 1024 * 2;
|
config.start_threshold = 1024;
|
||||||
config.silence_threshold = 1024 * 2;
|
config.stop_threshold = 1024 * 2;
|
||||||
|
config.silence_threshold = 1024 * 2;
|
||||||
|
|
||||||
tinyalsa->pcm = pcm_open(card, device, PCM_OUT, &config);
|
tinyalsa->pcm = pcm_open(card, device, PCM_OUT, &config);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user