timkur wrote: 
> From logs enabled with 
> 
> Plays fine for awhile, and then near the end things seem to get tripped
> up.
> 
> I have noticed that the web interface has some glitchiness with the
> remaining time near the end of the song, and it looks like that may have
> tripped up the player as well. I haven't had a chance to dig into the
> code further... is the silence something you get from the decoder or is
> it something you determine? Looks like the remaining frame count hits 0
> and then magically more frames appear?
> 

Ok, looked at the code a bit, and captured a log of when things started
going downhill.... looks to be about 10 seconds before the audio
actually stops. Does a 10 second buffer seem to make sense to you?

[19:55:34.915] _output_frames:116 avail: 1136 frames: 415935 silence: 0
[19:55:34.915] _output_frames:279 wrote 1136 frames
[19:55:34.935] _output_frames:116 avail: 1136 frames: 414799 silence: 0
[19:55:34.935] _output_frames:279 wrote 1136 frames
[19:55:34.948] decode_thread:75 streambuf bytes: 250 outputbuf space:
218695
[19:55:34.948] mad_decode:207 end of stream
[19:55:34.948] mad_decode:302 write 1152 frames
[19:55:34.948] decode_thread:100 decode complete
[19:55:34.948] sendSTAT:160 ms_played: 770513 (frames_played: 33986848
device_frames: 7915)
[19:55:34.948] sendSTAT:189 STAT: STMd
[19:55:34.948] sendSTAT:194 received bytesL: 12482141 streambuf: 0
outputbuf: 3318520 calc elapsed: 770513 real elapsed: 770704 (diff:
-191) device: 179 delay: 16
[19:55:34.948] sendSTAT:160 ms_played: 770513 (frames_played: 33986848
device_frames: 7915)
[19:55:34.948] sendSTAT:189 STAT: STMt
[19:55:34.948] sendSTAT:194 received bytesL: 12482141 streambuf: 0
outputbuf: 3318520 calc elapsed: 770513 real elapsed: 770704 (diff:
-191) device: 179 delay: 16
[19:55:34.965] _output_frames:116 avail: 1136 frames: 414815 silence: 0
[19:55:34.965] _output_frames:279 wrote 1136 frames
[19:55:34.996] _output_frames:116 avail: 1136 frames: 413679 silence: 0

frames starts dropping by 1136 frames per log output now, presumably
because the decoder isn't giving you more data?

Unfortunately trying to start the audio clip at ~10 seconds prior to the
silence doesn't seem to hit the error.

Tim


------------------------------------------------------------------------
timkur's Profile: http://forums.slimdevices.com/member.php?userid=70102
View this thread: http://forums.slimdevices.com/showthread.php?t=108550

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to