1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndulaw.h"
22 class WXDLLEXPORT wxSoundFormatUlaw
: public wxSoundFormatBase
{
27 void SetSampleRate(wxUint32 srate
);
28 wxUint32
GetSampleRate() const;
30 wxSoundFormatType
GetType() const { return wxSOUND_ULAW
; }
31 wxSoundFormatBase
*Clone() const;
33 wxUint32
GetTimeFromBytes(wxUint32 bytes
) const;
34 wxUint32
GetBytesFromTime(wxUint32 time
) const;
36 bool operator !=(const wxSoundFormatBase
& frmt2
) const;
43 // ULAW converter class
46 class WXDLLEXPORT wxSoundRouterStream
;
47 class WXDLLEXPORT wxSoundStreamUlaw
: public wxSoundStreamCodec
{
49 wxSoundStreamUlaw(wxSoundStream
& sndio
);
52 wxSoundStream
& Read(void *buffer
, size_t len
);
53 wxSoundStream
& Write(const void *buffer
, size_t len
);
55 bool SetSoundFormat(const wxSoundFormatBase
& format
);
58 wxSoundRouterStream
*m_router
;