View Issue Details

IDProjectCategoryView StatusLast Update
0004078GNUnetconversation servicepublic2018-06-06 23:14
ReporterSree Harsha Totakura Assigned ToDue Date
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product VersionGit master 
Summary0004078: Audio lags after some time
DescriptionSource audio keeps getting lagged. The lag is not noticeable for the first few minutes (approx. up to 5 min).

I am not sure whether this is a problem with Pulse interface or Opus or how we handle the buffers and the IO.
Steps To ReproduceI have tested with a simple setup using PulseAudio to redirect audio output from a media player to conversation's recording helper and then outputting it to the default audio output through coversation's playback helper.

Setup should be reproducible:
1. Add a PA null sink: pactl load-module module-null-sink
2. Start playing your favourite media player
3. Configure the media player to use the null sink as its output sink. I used pavucontrol to do this.
4. Start conversation audio playback and recording helpers: ./gnunet-helper-audio-record| ./gnunet-helper-audio-playback
5. Configure the recording helper to read input audio from the monitor of the null sink.
6. Configure the playback helper to output audio to your default output (headphone or speakers).

You should start hearing the output of the media player. Now wait for app. 5 minutes and pause/play the media player, you'll notice that the playback does not stop/start immediately. Wait another 5 minutes and press pause/play; now you will notice that the delay is a bit longer.
TagsNo tags attached.

Relationships

related to 0003868 confirmed audio playback should detect silence and drop 

Activities

Sree Harsha Totakura

2015-12-03 15:24

updater   ~0009974

I just noticed that if I suspend one of the helpers and later resume, the delay increases further. This suggests that there is some buffering involved in the pulse interface and this keeps getting filled up quicker than we can process.

Sree Harsha Totakura

2015-12-07 10:33

updater   ~0009981

Last edited: 2015-12-07 10:54

This seems to be a problem associated with PA. PA's own binaries also have this issue: `parec | pacat`

Sree Harsha Totakura

2015-12-07 10:35

updater   ~0009982

Last edited: 2015-12-07 10:36

I don't think this bug is a duplicate of 0003868, but it is related to it.

Issue History

Date ModifiedUsernameFieldChange
2015-12-03 15:19Sree Harsha TotakuraNew Issue
2015-12-03 15:20Sree Harsha TotakuraSteps to Reproduce Updated
2015-12-03 15:20Sree Harsha TotakuraSteps to Reproduce Updated
2015-12-03 15:24Sree Harsha TotakuraNote Added: 0009974
2015-12-03 15:50Christian GrothoffRelationship addedduplicate of 0003868
2015-12-07 10:33Sree Harsha TotakuraNote Added: 0009981
2015-12-07 10:35Sree Harsha TotakuraNote Added: 0009982
2015-12-07 10:36Sree Harsha TotakuraNote Edited: 0009982
2015-12-07 10:36Sree Harsha TotakuraNote Edited: 0009982
2015-12-07 10:36Sree Harsha TotakuraNote Edited: 0009982
2015-12-07 10:37Sree Harsha TotakuraRelationship replacedrelated to 0003868
2015-12-07 10:37Sree Harsha TotakuraDescription Updated
2015-12-07 10:54Sree Harsha TotakuraNote Edited: 0009981
2016-03-25 15:35tgAssigned To => hark
2016-03-25 15:35tgStatusnew => assigned
2018-06-06 23:14Christian GrothoffAssigned Tohark =>
2018-06-06 23:14Christian GrothoffStatusassigned => confirmed