1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndulaw.h"
21 class WXDLLEXPORT wxSoundFormatUlaw
: public wxSoundFormatBase
{
26 void SetSampleRate(wxUint32 srate
);
27 wxUint32
GetSampleRate() const;
29 void SetChannels(wxUint8 channels
);
30 wxUint8
GetChannels() const;
32 wxSoundFormatType
GetType() const { return wxSOUND_ULAW
; }
33 wxSoundFormatBase
*Clone() const;
35 wxUint32
GetTimeFromBytes(wxUint32 bytes
) const;
36 wxUint32
GetBytesFromTime(wxUint32 time
) const;
38 bool operator !=(const wxSoundFormatBase
& frmt2
) const;
45 // ULAW converter class
48 class WXDLLEXPORT wxSoundRouterStream
;
49 class WXDLLEXPORT wxSoundStreamUlaw
: public wxSoundStreamCodec
{
51 wxSoundStreamUlaw(wxSoundStream
& sndio
);
54 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
55 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
57 bool SetSoundFormat(const wxSoundFormatBase
& format
);
59 wxUint32
GetBestSize() const;
62 wxSoundRouterStream
*m_router
;