"void" added
This commit is contained in:
parent
46ede434d8
commit
a07352eacd
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.1 2005/04/14 21:23:39 ganovelli
|
||||||
|
*** empty log message ***
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -46,7 +49,7 @@ struct TrackRecorder{
|
||||||
int nextTime,
|
int nextTime,
|
||||||
startTime;
|
startTime;
|
||||||
|
|
||||||
StartPlaying(char * namefile){
|
void StartPlaying(char * namefile){
|
||||||
if(trackfile != NULL) return;
|
if(trackfile != NULL) return;
|
||||||
|
|
||||||
trackfile = fopen(namefile,"rb");
|
trackfile = fopen(namefile,"rb");
|
||||||
|
@ -55,7 +58,7 @@ struct TrackRecorder{
|
||||||
fread(&nextTime,4,1,trackfile);
|
fread(&nextTime,4,1,trackfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateTrackball(Trackball & t){
|
void UpdateTrackball(Trackball & t){
|
||||||
|
|
||||||
while( ( clock()-startTime > nextTime)&& !feof(trackfile)){
|
while( ( clock()-startTime > nextTime)&& !feof(trackfile)){
|
||||||
fread(&t.track,sizeof(float)*4 + sizeof(float)*5,1,trackfile);
|
fread(&t.track,sizeof(float)*4 + sizeof(float)*5,1,trackfile);
|
||||||
|
@ -65,20 +68,20 @@ struct TrackRecorder{
|
||||||
Stop();
|
Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
StartRecording(char * namefile){
|
void StartRecording(char * namefile){
|
||||||
if(trackfile != NULL) return;
|
if(trackfile != NULL) return;
|
||||||
trackfile = fopen(namefile,"wb");
|
trackfile = fopen(namefile,"wb");
|
||||||
startTime = clock();
|
startTime = clock();
|
||||||
mode = REC;
|
mode = REC;
|
||||||
}
|
}
|
||||||
|
|
||||||
RecordTrackball(Trackball & t){
|
void RecordTrackball(Trackball & t){
|
||||||
nextTime = clock()-startTime;
|
nextTime = clock()-startTime;
|
||||||
fwrite(&nextTime,4,1,trackfile);
|
fwrite(&nextTime,4,1,trackfile);
|
||||||
fwrite(&t.track,sizeof(float)*4 + sizeof(float)*5,1,trackfile);
|
fwrite(&t.track,sizeof(float)*4 + sizeof(float)*5,1,trackfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
Stop(){mode = OFF; trackfile = NULL;};
|
void Stop(){mode = OFF; trackfile = NULL;};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue