Add char * version of ReadFrames, for compatibility with some R5 games.
Patch by genki0. I didn't see any reason not to commit it, so... This should fix #897. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25656 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -270,6 +270,20 @@ BMediaTrack::CurrentTime() const
|
||||
return fCurTime;
|
||||
}
|
||||
|
||||
// BMediaTrack::ReadFrames(char *, long long *, media_header *)
|
||||
// Compatibility for R5 and below. Required by Corum III and Civ:CTP.
|
||||
#if __GNUC__ < 3
|
||||
|
||||
extern "C" status_t
|
||||
ReadFrames__11BMediaTrackPcPxP12media_header(BMediaTrack *self,
|
||||
char *out_buffer,
|
||||
int64 *out_frameCount,
|
||||
media_header *mh)
|
||||
{
|
||||
return self->ReadFrames(out_buffer, out_frameCount, mh, 0);
|
||||
}
|
||||
|
||||
#endif // __GNUC__ < 3
|
||||
|
||||
status_t
|
||||
BMediaTrack::ReadFrames(void *out_buffer,
|
||||
|
||||
Reference in New Issue
Block a user