## Description

Include file: xsound.h

Parent class: XMediaWindow

### Overview

### Functions

#### XSound

#### Parameters

XFrameWindow * owner the owner of the device

#### Remarks

Construct a sound-device. XSound can play MIDI and WAV-files. To use this control you must invoke the multimedia-library!

#### ~XSound

#### Remarks

The destructor MUST be called before the message-loop of an aplication is destroyed. Therefore overwrite QueryForClose() of the owning framewindow and call the destructor of XSound in that function.

#### SetDataFile

#### Parameters

char * p the file to play

#### Return-Value

LONG resultcode

#### Remarks

Play a new file

#### SetVolume

#### Parameters

USHORT volume volume in percent

#### Return-Value

LONG resultcode

#### Remarks

Set volume

#### OpenDevice

#### Parameters

char * p file to play

#### Return-Value

LONG resultcode

#### Remarks

Open the device

This document was generated by Jens von Pilgrim's Autodoc