1
0
Fork 0

Fix lint warnings about unexpected */

Introduced in b86238456f
This commit is contained in:
wangqr 2019-11-01 22:33:26 -04:00
parent b947116937
commit 29fd12258f
2 changed files with 4 additions and 4 deletions

View File

@ -257,7 +257,7 @@ void DirectSoundPlayer::Play(int64_t start,int64_t count) {
FillBuffer(true);
DWORD play_flag = 0;
if (count*/*provider->GetBytesPerSample()*/sizeof(int16_t) > bufSize) {
if (count* /*provider->GetBytesPerSample()*/ sizeof(int16_t) > bufSize) {
// Start thread
thread = new DirectSoundPlayerThread(this);
thread->Create();

View File

@ -372,7 +372,7 @@ void DirectSoundPlayer2Thread::Run()
DWORD buffer_offset = 0;
bool playback_should_be_running = false;
int current_latency = wanted_latency;
const DWORD wanted_latency_bytes = wanted_latency*waveFormat.nSamplesPerSec*/*provider->GetBytesPerSample()*/sizeof(int16_t)/1000;
const DWORD wanted_latency_bytes = wanted_latency*waveFormat.nSamplesPerSec* /*provider->GetBytesPerSample()*/ sizeof(int16_t)/1000;
while (running)
{
@ -425,7 +425,7 @@ void DirectSoundPlayer2Thread::Run()
if (bytes_filled < wanted_latency_bytes)
{
// Very short playback length, do without streaming playback
current_latency = (bytes_filled*1000) / (waveFormat.nSamplesPerSec*/*provider->GetBytesPerSample()*/sizeof(int16_t));
current_latency = (bytes_filled*1000) / (waveFormat.nSamplesPerSec* /*provider->GetBytesPerSample()*/ sizeof(int16_t));
if (FAILED(bfr->Play(0, 0, 0)))
REPORT_ERROR("Could not start single-buffer playback.")
}
@ -556,7 +556,7 @@ do_fill_buffer:
else if (bytes_filled < wanted_latency_bytes)
{
// Didn't fill as much as we wanted to, let's get back to filling sooner than normal
current_latency = (bytes_filled*1000) / (waveFormat.nSamplesPerSec*/*provider->GetBytesPerSample()*/sizeof(int16_t));
current_latency = (bytes_filled*1000) / (waveFormat.nSamplesPerSec* /*provider->GetBytesPerSample()*/ sizeof(int16_t));
}
else
{