Actions
Support Request #3894
closedChange filename of recorded DAT file
Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
AEV
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 7 64bit
Topic:
ADTF::Recorder
FAQ Links:
Description
Supportanfrage
Wie in einem früheren Ticket bereits besprochen starte ich ein Recording mit folgendem Snippet:
//this example is for using within a filter tADTFMediaDescriptor sDesc; strcpy(sDesc.strFilename, "/data/files/newfile.dat"); strcpy(sDesc.strShortDesc, "short description"); strcpy(sDesc.strLongDesc, "long description"); tEventInfo sEventInfo; memset(&sEventInfo, 0, sizeof(tEventInfo)); sEventInfo.pSource = static_cast<IObject*> (static_cast<IFilter*> (this)); sEventInfo.i32EventClass = adtf::IEvent::CLASS_APPLICATION; sEventInfo.i32EventCode = adtf::IEvent::EC_StartRecording; sEventInfo.i32Param1 = 0; sEventInfo.i32Param2 = 0; //RecorderEventID -> the recorder id which is set in the recorder filter sEventInfo.pvData = (tVoid*)&sDesc; sEventInfo.szDataLength = sizeof(sDesc); _kernel->SignalSend(&sEventInfo);
Gibt es die Möglichkeit den Dateinamen des Dat-Files erst bei einem Stop/Split Event zu setzen
oder muss ich hier mit Boardmitteln die Datei manuell umbenennen?
Lösung
Siehe Harddisk Recorder - Events received and emitted, ganz unten Change filename of the recorded file
Actions