1 | /*
|
---|
2 | * Copyright 2004 Christian Costa
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "unknwn.idl";
|
---|
29 | import "mmstream.idl";
|
---|
30 |
|
---|
31 | cpp_quote("#if 0")
|
---|
32 | typedef struct tWAVEFORMATEX WAVEFORMATEX;
|
---|
33 | cpp_quote ("#endif")
|
---|
34 |
|
---|
35 | interface IAudioMediaStream;
|
---|
36 | interface IAudioStreamSample;
|
---|
37 | interface IMemoryData;
|
---|
38 | interface IAudioData;
|
---|
39 |
|
---|
40 | [
|
---|
41 | object,
|
---|
42 | local,
|
---|
43 | uuid(f7537560-a3be-11d0-8212-00c04fc32c45),
|
---|
44 | pointer_default(unique)
|
---|
45 | ]
|
---|
46 | interface IAudioMediaStream : IMediaStream
|
---|
47 | {
|
---|
48 | HRESULT GetFormat(
|
---|
49 | [out] /*[optional]*/ WAVEFORMATEX *pWaveFormatCurrent
|
---|
50 | );
|
---|
51 |
|
---|
52 | HRESULT SetFormat(
|
---|
53 | [in] const WAVEFORMATEX *lpWaveFormat);
|
---|
54 |
|
---|
55 | HRESULT CreateSample(
|
---|
56 | [in] IAudioData *pAudioData,
|
---|
57 | [in] DWORD dwFlags,
|
---|
58 | [out] IAudioStreamSample **ppSample
|
---|
59 | );
|
---|
60 | }
|
---|
61 |
|
---|
62 |
|
---|
63 | [
|
---|
64 | object,
|
---|
65 | local,
|
---|
66 | uuid(345fee00-aba5-11d0-8212-00c04fc32c45),
|
---|
67 | pointer_default(unique)
|
---|
68 | ]
|
---|
69 | interface IAudioStreamSample : IStreamSample
|
---|
70 | {
|
---|
71 | HRESULT GetAudioData(
|
---|
72 | [out] IAudioData **ppAudio
|
---|
73 | );
|
---|
74 | }
|
---|
75 |
|
---|
76 |
|
---|
77 | [
|
---|
78 | object,
|
---|
79 | local,
|
---|
80 | uuid(327fc560-af60-11d0-8212-00c04fc32c45),
|
---|
81 | pointer_default(unique)
|
---|
82 | ]
|
---|
83 | interface IMemoryData : IUnknown
|
---|
84 | {
|
---|
85 | HRESULT SetBuffer(
|
---|
86 | [in] DWORD cbSize,
|
---|
87 | [in] BYTE *pbData,
|
---|
88 | [in] DWORD dwFlags
|
---|
89 | );
|
---|
90 |
|
---|
91 | HRESULT GetInfo(
|
---|
92 | [out] DWORD *pdwLength,
|
---|
93 | [out] BYTE **ppbData,
|
---|
94 | [out] DWORD *pcbActualData
|
---|
95 | );
|
---|
96 | HRESULT SetActual(
|
---|
97 | [in] DWORD cbDataValid
|
---|
98 | );
|
---|
99 | }
|
---|
100 |
|
---|
101 |
|
---|
102 | [
|
---|
103 | object,
|
---|
104 | local,
|
---|
105 | uuid(54c719c0-af60-11d0-8212-00c04fc32c45),
|
---|
106 | pointer_default(unique)
|
---|
107 | ]
|
---|
108 | interface IAudioData : IMemoryData
|
---|
109 | {
|
---|
110 | HRESULT GetFormat(
|
---|
111 | [out] /*[optional]*/ WAVEFORMATEX *pWaveFormatCurrent
|
---|
112 | );
|
---|
113 |
|
---|
114 | HRESULT SetFormat(
|
---|
115 | [in] const WAVEFORMATEX *lpWaveFormat
|
---|
116 | );
|
---|
117 | }
|
---|