Get stream informations (length, sampling rate, channel number, ...), UNICODE version
__stdcall __declspec(dllimport) void zplay_GetStreamInfoW(ZPLAY_HANDLE handle, TStreamInfoW * pInfo);
Parameters |
Description |
ZPLAY_HANDLE handle |
ZPLAY handle. Get this handle with zplay_CreateZPlay. |
TStreamInfoW * pInfo |
Pointer to TStreamInfoW structure. User must allocate memory for this structure. |
None.
Use this function to get basic informations about opened stream.
Note: Only with this function you can get stream length, sampling rate, channel number ...
Get stream info from current stream.
TStreamInfoW pInfo; instance->GetStreamInfoW(&pInfo); wprintf(L"%s %i Hz Channel: %u Length: %02i:%02i:%02i:%02i", pInfo.Description, pInfo.SamplingRate, pInfo.ChannelNumber, pInfo.Length.hms.hour, pInfo.Length.hms.minute, pInfo.Length.hms.second, pInfo.Length.hms.millisecond);
TStreamInfoW pInfo; zplay_GetStreamInfoW(instance, &pInfo); wprintf(L"%s %i Hz Channel: %u Length: %02i:%02i:%02i:%02i", pInfo.Description, pInfo.SamplingRate, pInfo.ChannelNumber, pInfo.Length.hms.hour, pInfo.Length.hms.minute, pInfo.Length.hms.second, pInfo.Length.hms.millisecond);
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |