Get stream informations (length, sampling rate, channel number, ...), ANSI version
virtual __stdcall void GetStreamInfo(TStreamInfo * pInfo) = 0;
Parameters |
Description |
TStreamInfo * pInfo |
Pointer to TStreamInfo 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.
TStreamInfo pInfo; instance->GetStreamInfo(&pInfo); printf("%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);
TStreamInfo pInfo; zplay_GetStreamInfo(instance, &pInfo); printf("%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 |