Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
02e1ce0a
Commit
02e1ce0a
authored
Dec 07, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Fix period size in capture.
parent
f18b428c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
wavein.c
dlls/winealsa.drv/wavein.c
+2
-5
No files found.
dlls/winealsa.drv/wavein.c
View file @
02e1ce0a
...
...
@@ -160,7 +160,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
SetEvent
(
wwi
->
hStartUpEvent
);
/* make sleep time to be # of ms to output a period */
dwSleepTime
=
(
1024
/*wwi-dwPeriodSize => overrun!*/
*
1000
)
/
wwi
->
format
.
Format
.
nAvgBytesPerSec
;
dwSleepTime
=
(
wwi
->
dwPeriodSize
*
1000
)
/
wwi
->
format
.
Format
.
nAvgBytesPerSec
;
frames_per_period
=
snd_pcm_bytes_to_frames
(
wwi
->
pcm
,
wwi
->
dwPeriodSize
);
TRACE
(
"sleeptime=%d ms
\n
"
,
dwSleepTime
);
...
...
@@ -581,10 +581,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
ALSA_InitRingMessage
(
&
wwi
->
msgRing
);
wwi
->
dwPeriodSize
=
period_size
;
/*if (wwi->dwFragmentSize % wwi->format.Format.nBlockAlign)
ERR("Fragment doesn't contain an integral number of data blocks\n");
*/
wwi
->
dwPeriodSize
=
snd_pcm_frames_to_bytes
(
pcm
,
period_size
);
TRACE
(
"dwPeriodSize=%u
\n
"
,
wwi
->
dwPeriodSize
);
TRACE
(
"wBitsPerSample=%u, nAvgBytesPerSec=%u, nSamplesPerSec=%u, nChannels=%u nBlockAlign=%u!
\n
"
,
wwi
->
format
.
Format
.
wBitsPerSample
,
wwi
->
format
.
Format
.
nAvgBytesPerSec
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment