Skip to content

Commit

Permalink
Drop use of non-initialized variables
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Thibault <[email protected]>
  • Loading branch information
sthibaul committed Jan 2, 2025
1 parent 43e1173 commit ba9ac34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions solaris/oss/JackBoomerDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ void JackBoomerDriver::SetSampleFormat()
void JackBoomerDriver::DisplayDeviceInfo()
{
audio_buf_info info;
oss_audioinfo ai_in, ai_out;
memset(&info, 0, sizeof(audio_buf_info));
int cap = 0;

Expand Down Expand Up @@ -225,10 +224,6 @@ void JackBoomerDriver::DisplayDeviceInfo()
if (cap & DSP_CAP_BIND) jack_info(" DSP_CAP_BIND");
}
}

if (ai_in.rate_source != ai_out.rate_source) {
jack_info("Warning : input and output are not necessarily driven by the same clock!");
}
}

JackBoomerDriver::JackBoomerDriver(const char* name, const char* alias, JackLockedEngine* engine, JackSynchro* table)
Expand Down
5 changes: 0 additions & 5 deletions solaris/oss/JackOSSDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ void JackOSSDriver::SetSampleFormat()
void JackOSSDriver::DisplayDeviceInfo()
{
audio_buf_info info;
oss_audioinfo ai_in, ai_out;
memset(&info, 0, sizeof(audio_buf_info));
int cap = 0;

Expand Down Expand Up @@ -223,10 +222,6 @@ void JackOSSDriver::DisplayDeviceInfo()
if (cap & DSP_CAP_BIND) jack_info(" DSP_CAP_BIND");
}
}

if (ai_in.rate_source != ai_out.rate_source) {
jack_info("Warning : input and output are not necessarily driven by the same clock!");
}
}

int JackOSSDriver::OpenInput()
Expand Down

0 comments on commit ba9ac34

Please sign in to comment.