summaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-14 22:05:56 -0800
committerChris Robinson <[email protected]>2008-02-14 22:05:56 -0800
commit8c3188bc7dc2f47a27398fc61ed2dacd36397190 (patch)
tree5c46bd2fb13355a1bdb6f6118b86bee9452f2859 /Alc/alsa.c
parent880196e5a811356c4a6b36798a81429b4a48eb40 (diff)
Remove FrameSize struct member
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 19682db7..09727ba9 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -647,7 +647,7 @@ static void alsa_capture_samples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint l
}
Pointer = (char*)areas->addr + (offset * areas->step / 8);
- Count = size * pDevice->FrameSize;
+ Count = psnd_pcm_frames_to_bytes(data->pcmHandle, size);
memcpy(pBuffer, Pointer, Count);
pBuffer = (char*)pBuffer + Count;