summaryrefslogtreecommitdiff
path: root/sys/directsound/gstdirectsoundsrc.h
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-04-06 16:13:41 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-04-06 16:15:28 +0300
commit6d256d9908e292f6c593bf45e69354f6b613cc8b (patch)
tree04e6ef2f928b52e97ba3dab955b0dc58b8445cf7 /sys/directsound/gstdirectsoundsrc.h
parent58370ed6cf733380024fad3eb39334d06cfc7534 (diff)
downloadgstreamer-plugins-bad-6d256d9908e292f6c593bf45e69354f6b613cc8b.tar.gz
directsoundsrc: Correctly calculate segsize and segtotal
segsize should be based on latency-time, and must be a multiple of the frame size. segtotal should be based on buffer-time and segsize. This prevents errors caused by outputting buffers that are not a multiple of the frame size, and actually makes the buffer-time and latency-time properties do what they're supposed to do.
Diffstat (limited to 'sys/directsound/gstdirectsoundsrc.h')
-rw-r--r--sys/directsound/gstdirectsoundsrc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.h b/sys/directsound/gstdirectsoundsrc.h
index 9aa225fb3..31218976d 100644
--- a/sys/directsound/gstdirectsoundsrc.h
+++ b/sys/directsound/gstdirectsoundsrc.h
@@ -86,10 +86,8 @@ struct _GstDirectSoundSrc
DWORD notifysize;
guint buffer_size;
- guint latency_size;
guint bytes_per_sample;
- guint buffer_time;
guint latency_time;
HMIXER mixer;