minor api changes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6443 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-01-31 12:39:55 +00:00
parent 74c928840f
commit 6e04e144d6
8 changed files with 17 additions and 17 deletions
@@ -83,10 +83,10 @@ mp3Decoder::~mp3Decoder()
void void
mp3Decoder::GetCodecInfo(media_codec_info &info) mp3Decoder::GetCodecInfo(media_codec_info *info)
{ {
strcpy(info.short_name, "mp3"); strcpy(info->short_name, "mp3");
strcpy(info.pretty_name, "MPEG 1/2/2.5 audio layer 1/2/3 decoder, based on mpeg123 mpglib"); strcpy(info->pretty_name, "MPEG audio decoder (mpeg123 mpglib)");
// ToDo: could alter the above string depending on the real format // ToDo: could alter the above string depending on the real format
} }
@@ -8,7 +8,7 @@ public:
mp3Decoder(); mp3Decoder();
~mp3Decoder(); ~mp3Decoder();
void GetCodecInfo(media_codec_info &codecInfo); void GetCodecInfo(media_codec_info *codecInfo);
status_t Setup(media_format *ioEncodedFormat, status_t Setup(media_format *ioEncodedFormat,
const void *infoBuffer, int32 infoSize); const void *infoBuffer, int32 infoSize);
@@ -22,10 +22,10 @@ MusePackDecoder::~MusePackDecoder()
void void
MusePackDecoder::GetCodecInfo(media_codec_info &info) MusePackDecoder::GetCodecInfo(media_codec_info *info)
{ {
strcpy(info.short_name, "musepack"); strcpy(info->short_name, "musepack");
strcpy(info.pretty_name, "MusePack audio codec based on mpcdec by Andree Buschmann"); strcpy(info->pretty_name, "MusePack audio codec based on mpcdec by Andree Buschmann");
} }
@@ -17,7 +17,7 @@ class MusePackDecoder : public Decoder {
MusePackDecoder(); MusePackDecoder();
~MusePackDecoder(); ~MusePackDecoder();
void GetCodecInfo(media_codec_info &info); void GetCodecInfo(media_codec_info *info);
status_t Setup(media_format *ioEncodedFormat, status_t Setup(media_format *ioEncodedFormat,
const void *infoBuffer, int32 infoSize); const void *infoBuffer, int32 infoSize);
@@ -22,14 +22,14 @@ AudioBufferSize(int32 channel_count, uint32 sample_format, float frame_rate, big
void void
RawDecoder::GetCodecInfo(media_codec_info &info) RawDecoder::GetCodecInfo(media_codec_info *info)
{ {
strcpy(info.short_name, "raw"); strcpy(info->short_name, "raw");
if (fInputFormat.IsAudio()) if (fInputFormat.IsAudio())
strcpy(info.pretty_name, "Raw audio decoder"); strcpy(info->pretty_name, "Raw audio decoder");
else else
strcpy(info.pretty_name, "Raw video decoder"); strcpy(info->pretty_name, "Raw video decoder");
} }
@@ -3,7 +3,7 @@
class RawDecoder : public Decoder class RawDecoder : public Decoder
{ {
public: public:
void GetCodecInfo(media_codec_info &info); void GetCodecInfo(media_codec_info *info);
status_t Setup(media_format *ioEncodedFormat, status_t Setup(media_format *ioEncodedFormat,
const void *infoBuffer, int32 infoSize); const void *infoBuffer, int32 infoSize);
@@ -68,10 +68,10 @@ SpeexDecoder::~SpeexDecoder()
void void
SpeexDecoder::GetCodecInfo(media_codec_info &info) SpeexDecoder::GetCodecInfo(media_codec_info *info)
{ {
strncpy(info.short_name, "speex-libspeex", sizeof(info.short_name)); strncpy(info->short_name, "speex-libspeex", sizeof(info->short_name));
strncpy(info.pretty_name, "speex decoder [libspeex], by Andrew Bachmann", sizeof(info.pretty_name)); strncpy(info->pretty_name, "speex decoder [libspeex], by Andrew Bachmann", sizeof(info->pretty_name));
} }
@@ -10,7 +10,7 @@ public:
SpeexDecoder(); SpeexDecoder();
~SpeexDecoder(); ~SpeexDecoder();
void GetCodecInfo(media_codec_info &info); void GetCodecInfo(media_codec_info *info);
status_t Setup(media_format *inputFormat, status_t Setup(media_format *inputFormat,
const void *infoBuffer, int32 infoSize); const void *infoBuffer, int32 infoSize);