*: use auto
This commit is contained in:
@@ -283,7 +283,7 @@ MultiReadAdvance(ConstBuffer<jack_ringbuffer_t *> buffers,
|
||||
static void
|
||||
WriteSilence(jack_port_t &port, jack_nframes_t nframes)
|
||||
{
|
||||
jack_default_audio_sample_t *out =
|
||||
auto *out =
|
||||
(jack_default_audio_sample_t *)
|
||||
jack_port_get_buffer(&port, nframes);
|
||||
if (out == nullptr)
|
||||
@@ -313,7 +313,7 @@ static void
|
||||
Copy(jack_port_t &dest, jack_nframes_t nframes,
|
||||
jack_ringbuffer_t &src, jack_nframes_t available)
|
||||
{
|
||||
jack_default_audio_sample_t *out =
|
||||
auto *out =
|
||||
(jack_default_audio_sample_t *)
|
||||
jack_port_get_buffer(&dest, nframes);
|
||||
if (out == nullptr)
|
||||
|
||||
@@ -326,9 +326,9 @@ inline void
|
||||
PulseOutput::OnServerLayoutChanged(pa_subscription_event_type_t t,
|
||||
uint32_t idx)
|
||||
{
|
||||
pa_subscription_event_type_t facility =
|
||||
auto facility =
|
||||
pa_subscription_event_type_t(t & PA_SUBSCRIPTION_EVENT_FACILITY_MASK);
|
||||
pa_subscription_event_type_t type =
|
||||
auto type =
|
||||
pa_subscription_event_type_t(t & PA_SUBSCRIPTION_EVENT_TYPE_MASK);
|
||||
|
||||
if (mixer != nullptr &&
|
||||
|
||||
@@ -251,7 +251,7 @@ RecorderOutput::ReopenFormat(AllocatedPath &&new_path)
|
||||
assert(path.IsNull());
|
||||
assert(file == nullptr);
|
||||
|
||||
FileOutputStream *new_file = new FileOutputStream(new_path);
|
||||
auto *new_file = new FileOutputStream(new_path);
|
||||
|
||||
AudioFormat new_audio_format = effective_audio_format;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user