Skip to content

Commit

Permalink
reverted audio coefficients, turns out it was the cause of people los…
Browse files Browse the repository at this point in the history
…ing audio
  • Loading branch information
jp9000 committed Sep 29, 2013
1 parent 78cfebc commit c2848ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OBSApi/AudioSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ bool AudioSource::GetBuffer(float **buffer, QWORD targetTimestamp)

while(audioSegments.Num())
{
if(audioSegments[0]->timestamp < (targetTimestamp-10))
if(audioSegments[0]->timestamp < targetTimestamp)
{
Log(TEXT("Audio timestamp for device '%s' was behind target timestamp by %llu! Had to delete audio segment."),
GetDeviceName(), targetTimestamp-audioSegments[0]->timestamp);
Expand All @@ -668,7 +668,7 @@ bool AudioSource::GetBuffer(float **buffer, QWORD targetTimestamp)
AudioSegment *segment = audioSegments[0];

QWORD difference = (segment->timestamp-targetTimestamp);
if(difference <= 20)
if(difference <= 10)
{
//Log(TEXT("segment.timestamp: %llu, targetTimestamp: %llu"), segment.timestamp, targetTimestamp);
outputBuffer.TransferFrom(segment->audioData);
Expand Down

0 comments on commit c2848ff

Please sign in to comment.