예제 #1
0
static pascal ComponentResult myDataHPlaybackHints64(DataHandler dh, long flags,
                wide *minFileOffset, wide *maxFileOffset,
                long bytesPerSecond)
{
    if (TRACE_ON(qtdatahandler))
    {
        SInt64 minFileOffset64 = WideToSInt64(*minFileOffset);
        LONGLONG minFileOffsetLL = minFileOffset64;
        SInt64 maxFileOffset64 = WideToSInt64(*maxFileOffset);
        LONGLONG maxFileOffsetLL = maxFileOffset64;

        TRACE("%s %s %li\n",wine_dbgstr_longlong(minFileOffsetLL), wine_dbgstr_longlong(maxFileOffsetLL), bytesPerSecond);
    }
    return noErr;
}
예제 #2
0
static pascal ComponentResult myDataHScheduleData64( DataHandler dh,
                                          Ptr PlaceToPutDataPtr,
                                          const wide * FileOffset,
                                          long DataSize,
                                          long RefCon,
                                          DataHSchedulePtr scheduleRec,
                                          DataHCompletionUPP CompletionRtn)
{
    Handle storage = GetComponentInstanceStorage(dh);
    DHData *data = (DHData*)*storage;
    HRESULT hr;
    SInt64 fileOffset64 = WideToSInt64(*FileOffset);
    LONGLONG offset = fileOffset64;
    BYTE* buffer = (BYTE*)PlaceToPutDataPtr;

    TRACE("%p %p %s %li %li %p %p\n",dh, PlaceToPutDataPtr, wine_dbgstr_longlong(offset), DataSize, RefCon, scheduleRec, CompletionRtn);

    hr = IAsyncReader_SyncRead(data->dataRef.pReader, offset, DataSize, buffer);
    TRACE("result %x\n",hr);
    if (CompletionRtn)
    {
        if (data->AsyncCompletionRtn)
            InvokeDataHCompletionUPP(data->AsyncPtr, data->AsyncRefCon, noErr, data->AsyncCompletionRtn);

        data->AsyncPtr = PlaceToPutDataPtr;
        data->AsyncRefCon = RefCon;
        data->AsyncCompletionRtn = CompletionRtn;
    }

    return noErr;
}
예제 #3
0
static jdouble jlong_to_jdouble(jlong lvalue)
{
    SInt64 val = WideToSInt64(lvalue);
    return SInt64ToLongDouble(val);
}
예제 #4
0
static jsint jlong_to_jsint(jlong lvalue)
{
    SInt64 val = WideToSInt64(lvalue);
    return S32Set(val);
}