source: trunk/src/msacm32/format.cpp@ 3837

Last change on this file since 3837 was 1607, checked in by sandervl, 26 years ago

Jens Weissner's update

File size: 4.9 KB
Line 
1/*
2 * MSACM32 library
3 *
4 * Copyright 1998 Patrik Stridvall
5 */
6
7#include <os2win.h>
8#include "winbase.h"
9#include "winerror.h"
10#include "windef.h"
11#include "debugtools.h"
12#include "mmsystem.h"
13#include "msacm.h"
14#include "msacmdrv.h"
15
16DEFAULT_DEBUG_CHANNEL(msacm)
17
18/***********************************************************************
19 * acmFormatChooseA (MSACM32.23)
20 */
21MMRESULT WINAPI acmFormatChooseA(
22 PACMFORMATCHOOSEA pafmtc)
23{
24 dprintf(("(%p): stub\n", pafmtc));
25 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
26 return MMSYSERR_ERROR;
27}
28
29/***********************************************************************
30 * acmFormatChooseW (MSACM32.24)
31 */
32MMRESULT WINAPI acmFormatChooseW(
33 PACMFORMATCHOOSEW pafmtc)
34{
35 dprintf(("(%p): stub\n", pafmtc));
36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
37 return MMSYSERR_ERROR;
38}
39
40/***********************************************************************
41 * acmFormatDetailsA (MSACM32.25)
42 */
43MMRESULT WINAPI acmFormatDetailsA(
44 HACMDRIVER had, PACMFORMATDETAILSA pafd, DWORD fdwDetails)
45{
46 if(fdwDetails & ~(ACM_FORMATDETAILSF_FORMAT))
47 return MMSYSERR_INVALFLAG;
48
49 /* FIXME
50 * How does the driver know if the ANSI or
51 * the UNICODE variant of PACMFORMATDETAILS is used?
52 * It might check cbStruct or does it only accept ANSI.
53 */
54 return (MMRESULT) acmDriverMessage(
55 had, ACMDM_FORMAT_DETAILS,
56 (LPARAM) pafd, (LPARAM) fdwDetails
57 );
58}
59
60/***********************************************************************
61 * acmFormatDetailsW (MSACM32.26)
62 */
63MMRESULT WINAPI acmFormatDetailsW(
64 HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD fdwDetails)
65{
66 dprintf(("(0x%08x, %p, %ld): stub\n", had, pafd, fdwDetails));
67 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
68 return MMSYSERR_ERROR;
69}
70
71/***********************************************************************
72 * acmFormatEnumA (MSACM32.27)
73 */
74MMRESULT WINAPI acmFormatEnumA(
75 HACMDRIVER had, PACMFORMATDETAILSA pafd,
76 ACMFORMATENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
77{
78 dprintf(("(0x%08x, %p, %p, %ld, %ld): stub\n",
79 had, pafd, fnCallback, dwInstance, fdwEnum
80 ));
81 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
82 return MMSYSERR_ERROR;
83}
84
85/***********************************************************************
86 * acmFormatEnumW (MSACM32.28)
87 */
88MMRESULT WINAPI acmFormatEnumW(
89 HACMDRIVER had, PACMFORMATDETAILSW pafd,
90 ACMFORMATENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
91{
92 dprintf(("(0x%08x, %p, %p, %ld, %ld): stub\n",
93 had, pafd, fnCallback, dwInstance, fdwEnum
94 ));
95 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
96 return MMSYSERR_ERROR;
97}
98
99/***********************************************************************
100 * acmFormatSuggest (MSACM32.29)
101 */
102MMRESULT WINAPI acmFormatSuggest(
103 HACMDRIVER had, PWAVEFORMATEX pwfxSrc, PWAVEFORMATEX pwfxDst,
104 DWORD cbwfxDst, DWORD fdwSuggest)
105{
106 dprintf(("(0x%08x, %p, %p, %ld, %ld): stub\n",
107 had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
108 ));
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
110 return MMSYSERR_ERROR;
111}
112
113/***********************************************************************
114 * acmFormatTagDetailsA (MSACM32.30)
115 */
116MMRESULT WINAPI acmFormatTagDetailsA(
117 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, DWORD fdwDetails)
118{
119 if(fdwDetails &
120 ~(ACM_FORMATTAGDETAILSF_FORMATTAG|ACM_FORMATTAGDETAILSF_LARGESTSIZE))
121 return MMSYSERR_INVALFLAG;
122
123 /* FIXME
124 * How does the driver know if the ANSI or
125 * the UNICODE variant of PACMFORMATTAGDETAILS is used?
126 * It might check cbStruct or does it only accept ANSI.
127 */
128 return (MMRESULT) acmDriverMessage(
129 had, ACMDM_FORMATTAG_DETAILS,
130 (LPARAM) paftd, (LPARAM) fdwDetails
131 );
132}
133
134/***********************************************************************
135 * acmFormatTagDetailsW (MSACM32.31)
136 */
137MMRESULT WINAPI acmFormatTagDetailsW(
138 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, DWORD fdwDetails)
139{
140 dprintf(("(0x%08x, %p, %ld): stub\n", had, paftd, fdwDetails));
141 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
142 return MMSYSERR_ERROR;
143}
144
145/***********************************************************************
146 * acmFormatTagEnumA (MSACM32.32)
147 */
148MMRESULT WINAPI acmFormatTagEnumA(
149 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd,
150 ACMFORMATTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
151{
152 dprintf(("(0x%08x, %p, %p, %ld, %ld): stub\n",
153 had, paftd, fnCallback, dwInstance, fdwEnum
154 ));
155 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
156 return MMSYSERR_ERROR;
157}
158
159/***********************************************************************
160 * acmFormatTagEnumW (MSACM32.33)
161 */
162MMRESULT WINAPI acmFormatTagEnumW(
163 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
164 ACMFORMATTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
165{
166 dprintf(("(0x%08x, %p, %p, %ld, %ld): stub\n",
167 had, paftd, fnCallback, dwInstance, fdwEnum
168 ));
169 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
170 return MMSYSERR_ERROR;
171}
Note: See TracBrowser for help on using the repository browser.