Cancelled

DirectSound implementation in Delphi for sound recording/output classes

Write DirectSound interface for the listed below wrapper (sound playback/recording). For use in Delphi XE4. Objects should allow re-creation

(freeing an object and creating another copy should work without restrictions). Wave output (TAudioOutput) should work with default output device,

should support simultaneous playback (adding several buffers at the same time should result their mixing).

TAudioInput is should work with default system input device, and return recorded buffers via callback routine; the size of the buffer should be controlled at the time of initialization (in the code below through "chunk" parameter, or any other interface that allows to control the buffer size).

type

TAudioOutput = class

public

constructor Create(Hz:integer; Stereo:boolean; Is8Bit:boolean); //Is8Bit = if true the sound discretion is 8 bit

procedure AddBuffer(p:pointer; cbSize:integer); ;//p - buffer, cbSize - buffer size

destructor Destroy; override;

end;

TAudioCallbackRoutine = procedure (p:pointer; cbSize:integer);

TAudioInput = class

public

property CallBack:TAudioCallbackRoutine read FCallback write FCallback; //callback routine for the sound recording, called when an input buffer is full

constructor Create(Hz:integer; Stereo:boolean; Is8bit:boolean; ChunkSize:integer); //ChunkSize is a size of the input buffer

procedure Start;

procedure Pause;

procedure Stop;

destructor Destroy; override;

end;

Skills: Delphi, Windows API

See more: wave device default delphi, delphi directsound, delphi xe4, p sound, sound mixing, hz, code recording, object wrapper, type recording, playback interface, wrapper interface, bit wrapper, object sound, xe4, class wrapper, recording mixing, stereo delphi, recording system, delphi copy, classes, winapi class, output sound, wrapper class, delphi full time, true type create

About the Employer:
( 12 reviews ) Vilnius, United States

Project ID: #4538368

2 freelancers are bidding on average $183 for this job

IonutCristea

Hello, Please check my PM. Ionut

$210 USD in 3 days
(10 Reviews)
3.9
armitagecorto

Hi, i did created a class wrapper for BASS audio engine: [url removed, login to view] i can enhance it as your needs.

$155 USD in 7 days
(2 Reviews)
1.7