SophiaFramework UNIVERSE 5.3 |
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
O | O | O | O |
Public Functions | |
---|---|
SInt16 |
GetFrameLength(
VocoderType type
, DataRateType rate
, UInt16Ptr length
)
Provide the size of the specified vocoder frame at a given rate
|
SFCError |
GetInDepth(
UInt16Ptr depth
)
Discover how many encoded frames are queued
|
SFCError |
GetOutDepth(
UInt16Ptr depth
)
Discover how many frames are queued for playout.
|
static SFBVocoderSmp |
NewInstance(
SFCErrorPtr exception = null
)
Create a new SFBVocoder instance.
|
static SFBVocoderSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
)
Create a new SFBVocoder instance.
|
SFCError |
PlayTone(
UInt16 tone1
, UInt16 tone2
, SInt16 volume
, UInt16 duration
)
Play a tone through the vocoder
|
SFCError |
VocConfigure(
IVocoderConfigType config
, IVocoderInfoType* info
)
This function configures the vocoder object to use a specific vocoder.
|
SFCError |
VocInRead(
DataRateType* rate
, UInt16Ptr length
, VoidPtr data
)
Obtain the oldest encoded voice frame from the queue.
|
SFCError |
VocInRead(
DataRateType* rate
, SFXBufferPtr data
)
Obtain the oldest encoded voice frame from the queue.
|
SFCError |
VocInReset( Void )
Clear the queue of encoded vocoder frames.
|
SFCError |
VocInStart( Void )
Start encoding voice frames.
|
SFCError |
VocInStop( Void )
Stop encoding voice frames.
|
SFCError |
VocOutReset( Void )
Clear the queue of frames available for decoding.
|
SFCError |
VocOutStart( Void )
Start the decoding and playout of queued frames.
|
SFCError |
VocOutStop( Void )
Stop the decoding and playout of queued frames.
|
SFCError |
VocOutWrite(
DataRateType rate
, UInt16 length
, VoidConstPtr data
)
Provide a new frame of data for the decoder.
|
SFCError |
VocOutWrite(
DataRateType rate
, SFXBufferConstRef data
)
Provide a new frame of data for the decoder.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SInt16 GetFrameLength( VocoderType type // vocoder type of the frame DataRateType rate // data rate of the frame UInt16Ptr length // pointer to storage to accept size of the frame );
[ public ] SFCError GetInDepth( UInt16Ptr depth // pointer to storage to accept count of queued frames );
[ public ] SFCError GetOutDepth( UInt16Ptr depth // pointer to storage to accept count of queued frames );
[ public, static ] SFBVocoderSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBVocoderSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] SFCError PlayTone( UInt16 tone1 // frequency of first tone UInt16 tone2 // frequency of second tone SInt16 volume // volume of tones UInt16 duration // duration of tones );
[ public ] SFCError VocConfigure( IVocoderConfigType config // configuration parameters for the vocoder object IVocoderInfoType* info // configuration information about the selected vocoder );
[ public ] SFCError VocInRead( DataRateType* rate // pointer to storage to accept data rate of the frame UInt16Ptr length // pointer to storage to accept size in bytes of the frame VoidPtr data // pointer to storage to accept the encoded frame bytes );
[ public ] SFCError VocInRead( DataRateType* rate // pointer to storage to accept data rate of the frame SFXBufferPtr data // pointer to storage to accept the encoded frame bytes, // the size is modified to UInt16 automatically when called by API );
[ public ] SFCError VocInReset(Void);
[ public ] SFCError VocInStart(Void);
[ public ] SFCError VocInStop(Void);
[ public ] SFCError VocOutReset(Void);
[ public ] SFCError VocOutStart(Void);
[ public ] SFCError VocOutStop(Void);
[ public ] SFCError VocOutWrite( DataRateType rate // data rate of the frame UInt16 length // size in bytes of the frame VoidConstPtr data // pointer to the frame data bytes );
[ public ] SFCError VocOutWrite( DataRateType rate // data rate of the frame SFXBufferConstRef data // buffer to the frame data bytes, // size is modified to UInt16 automatically when called by API );
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |