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

Last change on this file since 4658 was 3925, checked in by bird, 25 years ago

Added the CVS keyword Id.

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