ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

sndblst.h File Reference
#include <debug.h>
#include <ntddk.h>

Go to the source code of this file.

Data Structures

struct  PSOUND_BLASTER_PARAMETERS

Defines

#define SB_WAVE_IN_DEVICE_NAME   L"\\Device\\SBWaveIn"
#define SB_WAVE_OUT_DEVICE_NAME   L"\\Device\\SBWaveOut"
#define SB_AUX_DEVICE_NAME   L"\\Device\\SBAux"
#define SB_MIXER_DEVICE_NAME   L"\\Device\\SBMixer"
#define DEFAULT_PORT   0x220
#define DEFAULT_IRQ   5
#define DEFAULT_DMA   1
#define DEFAULT_BUFFER_SIZE   65535
#define SB_TIMEOUT   1000000
#define SB_DSP_READY   0xaa
#define SbWrite(sbdevice, subport, data)   WRITE_PORT_UCHAR((PUCHAR) sbdevice->port + subport, data)
#define SbRead(sbdevice, subport)   READ_PORT_UCHAR((PUCHAR) sbdevice->port + subport)
#define SbWriteReset(sbdevice, data)   SbWrite(sbdevice, SB_RESET_PORT, data)
#define SbWriteDataWithoutWait(sbdevice, data)   SbWrite(sbdevice, SB_WRITE_DATA_PORT, data)
#define SbReadDataWithoutWait(sbdevice)   SbRead(sbdevice, SB_READ_DATA_PORT)
#define SbGetWriteStatus(sbdevice)   SbRead(sbdevice, SB_WRITE_STATUS_PORT)
#define SbGetReadStatus(sbdevice)   SbRead(sbdevice, SB_READ_STATUS_PORT)
#define WaitToWrite(sbdevice)   WaitForReady(sbdevice, SB_WRITE_STATUS_PORT)
#define WaitToRead(sbdevice)   WaitForReady(sbdevice, SB_READ_STATUS_PORT)

Typedefs

typedef NTAPI NTSTATUS REGISTRY_CALLBACK_ROUTINE (PDRIVER_OBJECT DriverObject, PWSTR RegistryPath)
typedef REGISTRY_CALLBACK_ROUTINEPREGISTRY_CALLBACK_ROUTINE

Enumerations

enum  {
  NotDetected, SoundBlaster, SoundBlasterPro, SoundBlaster2,
  SoundBlasterPro2, SoundBlasterProMCV, SoundBlaster16
}
enum  {
  SB_RESET_PORT = 0x06, SB_READ_DATA_PORT = 0x0a, SB_WRITE_DATA_PORT = 0x0c, SB_WRITE_STATUS_PORT = 0x0c,
  SB_READ_STATUS_PORT = 0x0e
}
enum  {
  SbAutoInitDmaOutput = 0x1c, SbAutoInitDmaInput = 0x2c, SbSetOutputRate = 0x41, SbSetInputRate = 0x42,
  SbSetBlockSize = 0x48, SbPauseDac = 0x80, SbPauseDmaOutput = 0xd0, SbEnableSpeaker = 0xd1,
  SbDisableSpeaker = 0xd3, SbGetSpeakerStatus = 0xd8, SbGetDspVersion = 0xe1
}

Functions

BOOLEAN WaitForReady (PSOUND_BLASTER_PARAMETERS SBDevice, UCHAR Port)
BOOLEAN ResetSoundBlaster (PSOUND_BLASTER_PARAMETERS SBDevice)
ULONG GetSoundBlasterModel (PSOUND_BLASTER_PARAMETERS SBDevice)
BOOLEAN IsSampleRateCompatible (PSOUND_BLASTER_PARAMETERS SBDevice, ULONG SampleRate)
BOOLEAN SetOutputSampleRate (PSOUND_BLASTER_PARAMETERS SBDevice, ULONG SampleRate)
BOOLEAN EnableSpeaker (PSOUND_BLASTER_PARAMETERS SBDevice)
BOOLEAN DisableSpeaker (PSOUND_BLASTER_PARAMETERS SBDevice)
BOOLEAN StartSoundOutput (PSOUND_BLASTER_PARAMETERS SBDevice, ULONG BitDepth, ULONG Channels, ULONG BlockSize)
NTSTATUS EnableIrq (PDEVICE_OBJECT DeviceObject)

Generated on Fri May 25 2012 05:22:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.