#include <codec.h>
Data Fields | |
u_int16 | version |
u_int16(* | Read )(struct CodecServices *cs, u_int16 *ptr, u_int16 firstOdd, u_int16 bytes) |
u_int32(* | Skip )(struct CodecServices *cs, u_int32 bytes) |
s_int16(* | Seek )(struct CodecServices *cs, s_int32 offset, s_int16 whence) |
s_int32(* | Tell )(struct CodecServices *cs) |
s_int16(* | Output )(struct CodecServices *cs, s_int16 *data, s_int16 n) |
void(* | Comment )(struct CodecServices *cs, u_int16 c) |
void(* | Spectrum )(struct CodecServices *cs, s_int16 __y *data, s_int16 n, s_int16 ch) |
u_int32 | fileSize |
u_int32 | fileLeft |
u_int16 | goTo |
s_int16 | cancel |
s_int32 | playTimeSeconds |
s_int32 | playTimeSamples |
u_int32 | playTimeTotal |
u_int32 | sampleRate |
u_int16 | channels |
enum ChannelMatrix | matrix [MAX_SOURCE_CHANNELS] |
u_int32 | avgBitRate |
u_int32 | currBitRate |
u_int32 | peakBitRate |
s_int16 | gain |
u_int16 | fastForward |
Definition at line 53 of file codec.h.
|
Average bitrate. Updated by the codec. May change during playback. |
|
Request codec to cancel playing current file. To request cancellation, set this to a positive value. When the codec has finished cancelling, it will clear this value and return ceCancelled. |
|
Number of channels. Updated by the codec. |
|
Offers comments fields one character at the time. Special code 0x4000U is reserved for end-of-line. 0xC000U means end of comments. |
|
Current bitrate. Updated by the codec. May change during playback. |
|
Request codec to fast forward current file. If set, playback is requested at fastForward times normal playback speed. To stop fast forwarding, set value to 1 or 0. |
|
Bytes left in a file. If set to 0xFFFFFFFFU, then the file is a stream and never ends. |
|
File size in bytes. If set to 0xFFFFFFFFU, then the file is a stream and the file size is not known. |
|
Volume gain recommended by codec in 1/2 dB steps. Updated by the codec. |
|
Point to move to in an audio file in seconds. When set to anything other than 0xFFFFU, the codec has the responsibility to jump to that point. The codec has the freedom of deciding for itself the actual landing point in the file. When the codec has reached its destination it will clear this variable, and the actual position in the file can be read from playTimeSeconds. If the codec cannot jump to a given point (e.g. the file is a stream and the jump point would require jumping backwards), goTo is silently cleared to 0xFFFFU. |
|
Channel matrix. Updated by the codec. |
|
Output to audio file. data is a pointer to the data. There are n chan channel samples (Example: n = 32, cs->chan = 2, there are a total of 64 samples in data). |
|
Peak bitrate of the file. Updated by the codec. May change during playback. |
|
Samples played since last full second. Updated by the codec. If set to -1, the codec doesn't know where it is in the file. |
|
Playback time from beginning of file in seconds. Updated by the codec. If set to -1, the codec doesn't know where it is in the file. |
|
Total playback time in seconds. Updated by the codec. May be a changing estimate if an exact figure isn't available. 0xFFFFFFFFU if there is no information available. |
|
Read data from a file. If firstOdd is set, only the LSB of the first word is filled. If the last word is not completely filled (either firstOdd set or bytes is odd, but not both), only the MSB is changed. |
|
Sample rate. Updated by the codec. 0 if unknown. |
|
Seek in a file. offset and whence are equivalent with their fseek() counterparts. If Seek is NULL, the input is a stream and cannot be seeked. |
|
Skip data in a file. This should also be supported for streams. |
|
Spectrum analyzer hook. |
|
Tell location in a file (in bytes). |
|
Version number. 8 MSBs contain version number, 8 LSBs size of the structure in words. |