Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b7d766d9
Commit
b7d766d9
authored
Feb 27, 2009
by
Stefano Guidoni
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imaadp32: Support for non-standard formats.
parent
fdb7d53f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
imaadp32.c
dlls/imaadp32.acm/imaadp32.c
+19
-0
No files found.
dlls/imaadp32.acm/imaadp32.c
View file @
b7d766d9
...
...
@@ -120,6 +120,25 @@ static DWORD ADPCM_GetFormatIndex(const WAVEFORMATEX *wfx)
return
i
;
}
switch
(
wfx
->
wFormatTag
)
{
case
WAVE_FORMAT_PCM
:
if
(
3
>
wfx
->
nChannels
&&
wfx
->
nChannels
>
0
&&
wfx
->
nAvgBytesPerSec
==
2
*
wfx
->
nSamplesPerSec
*
wfx
->
nChannels
&&
wfx
->
nBlockAlign
==
2
*
wfx
->
nChannels
&&
wfx
->
wBitsPerSample
==
16
)
return
hi
;
break
;
case
WAVE_FORMAT_IMA_ADPCM
:
if
(
3
>
wfx
->
nChannels
&&
wfx
->
nChannels
>
0
&&
wfx
->
wBitsPerSample
==
4
&&
wfx
->
cbSize
==
2
)
return
hi
;
break
;
}
return
0xFFFFFFFF
;
}
...
...
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