[32] | 1 | /* $Id: ossidc32.h,v 1.1.1.1 2003/07/02 13:56:58 eleph Exp $ */
|
---|
| 2 | /*
|
---|
| 3 | * Header for IDC definitions & declarations
|
---|
| 4 | *
|
---|
| 5 | * (C) 2000-2002 InnoTek Systemberatung GmbH
|
---|
| 6 | * (C) 2000-2001 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 7 | *
|
---|
| 8 | * This program is free software; you can redistribute it and/or
|
---|
| 9 | * modify it under the terms of the GNU General Public License as
|
---|
| 10 | * published by the Free Software Foundation; either version 2 of
|
---|
| 11 | * the License, or (at your option) any later version.
|
---|
| 12 | *
|
---|
| 13 | * This program is distributed in the hope that it will be useful,
|
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 16 | * GNU General Public License for more details.
|
---|
| 17 | *
|
---|
| 18 | * You should have received a copy of the GNU General Public
|
---|
| 19 | * License along with this program; if not, write to the Free
|
---|
| 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 21 | * USA.
|
---|
| 22 | *
|
---|
| 23 | */
|
---|
| 24 |
|
---|
| 25 | #ifndef __OSSIDC32_H__
|
---|
| 26 | #define __OSSIDC32_H__
|
---|
| 27 |
|
---|
| 28 | #include <ossidc.h>
|
---|
| 29 |
|
---|
| 30 | #ifdef __cplusplus
|
---|
| 31 | extern "C" {
|
---|
| 32 | #endif
|
---|
| 33 |
|
---|
| 34 | //32 bits IDC procedures
|
---|
[209] | 35 | //16 bits pdd calls this during init. OSS_InitDriver calls init_module
|
---|
[32] | 36 | OSSRET OSS32_Initialize();
|
---|
| 37 | OSSRET OSS32_Shutdown();
|
---|
[130] | 38 |
|
---|
| 39 | int OSS32_CloseUNI16(void); // 12 Jun 07 SHL
|
---|
| 40 |
|
---|
[32] | 41 | OSSRET OSS32_QueryDevCaps(ULONG deviceid, POSS32_DEVCAPS pDevCaps);
|
---|
| 42 | OSSRET OSS32_QueryNames(ULONG deviceid, char *pszDeviceName, ULONG cbDeviceName,
|
---|
| 43 | char *pszMixerName, ULONG cbMixerName, BOOL fLongName);
|
---|
| 44 | OSSRET OSS32_APMResume();
|
---|
| 45 | OSSRET OSS32_APMSuspend();
|
---|
| 46 |
|
---|
| 47 | OSSRET OSS32_WaveOpen(ULONG deviceid, ULONG streamtype, OSSSTREAMID *pStreamId, int pcm, USHORT fileid);
|
---|
| 48 | OSSRET OSS32_WaveClose(OSSSTREAMID streamid);
|
---|
| 49 | OSSRET OSS32_WaveStart(OSSSTREAMID streamid);
|
---|
| 50 | OSSRET OSS32_WaveStop(OSSSTREAMID streamid);
|
---|
| 51 | OSSRET OSS32_WavePause(OSSSTREAMID streamid);
|
---|
| 52 | OSSRET OSS32_WaveResume(OSSSTREAMID streamid);
|
---|
| 53 | OSSRET OSS32_WavePrepare(OSSSTREAMID streamid);
|
---|
| 54 | OSSRET OSS32_WaveSetHwParams(OSSSTREAMID streamid, OSS32_HWPARAMS *pFormatInfo);
|
---|
| 55 | OSSRET OSS32_WaveAddBuffer(OSSSTREAMID streamid, ULONG buffer, ULONG size, ULONG *pTransferred, int pcm);
|
---|
| 56 | OSSRET OSS32_WaveGetPosition(OSSSTREAMID streamid, ULONG *pPosition);
|
---|
| 57 | OSSRET OSS32_WaveGetSpace(OSSSTREAMID streamid, ULONG *pBytesAvail);
|
---|
[386] | 58 | OSSRET OSS32_WaveGetHwPtr(OSSSTREAMID streamid, ULONG *pBytesAvail);
|
---|
[493] | 59 | OSSRET OSS32_WaveGetStatus(OSSSTREAMID streamid, ULONG *pStatus);
|
---|
[32] | 60 | OSSRET OSS32_WaveSetVolume(OSSSTREAMID streamid, ULONG volume);
|
---|
| 61 |
|
---|
| 62 | OSSRET OSS32_MixOpen(ULONG deviceid, OSSSTREAMID *pStreamId);
|
---|
| 63 | OSSRET OSS32_MixClose(OSSSTREAMID streamid);
|
---|
| 64 | OSSRET OSS32_MixSetVolume(OSSSTREAMID streamid, ULONG line, ULONG volume);
|
---|
| 65 | OSSRET OSS32_MixGetVolume(OSSSTREAMID streamid, ULONG line, ULONG *pVolume);
|
---|
| 66 | OSSRET OSS32_MixSetProperty(OSSSTREAMID streamid, ULONG line, ULONG value);
|
---|
| 67 | OSSRET OSS32_MixGetProperty(OSSSTREAMID streamid, ULONG line, ULONG *pValue);
|
---|
| 68 | OSSRET OSS32_MixQueryCaps(OSSSTREAMID streamid, POSS32_MIXCAPS pCaps);
|
---|
| 69 | OSSRET OSS32_MixQueryName(ULONG deviceid, char *pszMixerName, ULONG cbMixerName);
|
---|
| 70 |
|
---|
| 71 | OSSRET OSS32_MidiOpen(ULONG deviceid, ULONG streamtype, OSSSTREAMID *pStreamId);
|
---|
| 72 | OSSRET OSS32_MidiClose(OSSSTREAMID streamid);
|
---|
| 73 | OSSRET OSS32_MidiWrite(OSSSTREAMID streamid, ULONG midiByte);
|
---|
| 74 | OSSRET OSS32_MidiRead(OSSSTREAMID streamid, char *buffer, ULONG bufsize, ULONG *pTransferred);
|
---|
| 75 | OSSRET OSS32_MidiQueryCaps(OSSSTREAMID streamid, POSS32_MIDICAPS pCaps);
|
---|
| 76 | OSSRET OSS32_MidiCommand(OSSSTREAMID streamid, ULONG Cmd, BYTE channel, BYTE param1, BYTE param2);
|
---|
| 77 |
|
---|
[135] | 78 | int OSS32_ProcessMIDIIRQ(int bytes); // 12 Jun 07 SHL
|
---|
| 79 |
|
---|
[265] | 80 | int OSS32_DebugString(char *buffer, ULONG size); //PS debug from uniaud16
|
---|
| 81 |
|
---|
[32] | 82 | //Sets file id in current task structure
|
---|
| 83 | ULONG OSS32_SetFileId(ULONG fileid);
|
---|
| 84 |
|
---|
| 85 | //Notifies the 16 bits MMPM/2 driver that an irq has occured. This means
|
---|
| 86 | //it has to query the status of all active streams.
|
---|
| 87 | int OSS32_ProcessIRQ();
|
---|
| 88 | extern IDC16_HANDLER idc16_PddHandler;
|
---|
| 89 |
|
---|
| 90 | ULONG _cdecl CallPDD16(IDC16_HANDLER pHandler, ULONG cmd, ULONG param1, ULONG param2);
|
---|
| 91 |
|
---|
| 92 | #ifdef __cplusplus
|
---|
| 93 | }
|
---|
| 94 | #endif
|
---|
| 95 |
|
---|
| 96 | #endif
|
---|