output/alsa: fix coding style
This commit is contained in:
parent
e44ea5038e
commit
2d096a569a
@ -42,7 +42,7 @@ static const char default_device[] = "default";
|
|||||||
|
|
||||||
static constexpr unsigned MPD_ALSA_BUFFER_TIME_US = 500000;
|
static constexpr unsigned MPD_ALSA_BUFFER_TIME_US = 500000;
|
||||||
|
|
||||||
#define MPD_ALSA_RETRY_NR 5
|
static constexpr unsigned MPD_ALSA_RETRY_NR = 5;
|
||||||
|
|
||||||
typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
|
typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
|
||||||
snd_pcm_uframes_t size);
|
snd_pcm_uframes_t size);
|
||||||
@ -219,7 +219,7 @@ alsa_output_disable(AudioOutput *ao)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
alsa_test_default_device(void)
|
alsa_test_default_device()
|
||||||
{
|
{
|
||||||
snd_pcm_t *handle;
|
snd_pcm_t *handle;
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ alsa_output_setup_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams,
|
|||||||
|
|
||||||
/* if unsupported by the hardware, try other formats */
|
/* if unsupported by the hardware, try other formats */
|
||||||
|
|
||||||
static const SampleFormat probe_formats[] = {
|
static constexpr SampleFormat probe_formats[] = {
|
||||||
SampleFormat::S24_P32,
|
SampleFormat::S24_P32,
|
||||||
SampleFormat::S32,
|
SampleFormat::S32,
|
||||||
SampleFormat::S16,
|
SampleFormat::S16,
|
||||||
|
Loading…
Reference in New Issue
Block a user