18 Jun '13 - 08:39 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: WMA stream status  (Read 1281 times)
ken
Posts: 630


« on: 19 Nov '04 - 12:39 »
Reply with quoteQuote

Hi!

I need to read the status (like buffering % of stream) of a wma internet stream that I play with bass. (opend with BASS_WMA_StreamCreateFile)

I asume I can do it with "IWMReader" , found this on Microsoft http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/iwmstatuscallbackonstatus.asp

Any tips on how to do this?
Logged
Ian @ un4seen
Administrator
Posts: 15352


« Reply #1 on: 19 Nov '04 - 16:18 »
Reply with quoteQuote

It's not possible to change the "status callback", but that wouldn't tell you the buffering % anyway (just when buffering started/stopped). You can get the buffering progress via the IWMReaderAdvanced2 interface...

IWMReader *wmr=BASS_WMA_GetIWMReader(handle);
IWMReaderAdvanced2 *wmra2;
wmr->QueryInterface(IID_IWMReaderAdvanced2,&wmra2);
DWORD percent;
QWORD timeremain;
wmra2->GetBufferProgress(&percent,&timeremain);
wmra2->Release();
Logged
ken
Posts: 630


« Reply #2 on: 20 Nov '04 - 13:34 »
Reply with quoteQuote

Thanks, but I don't code in C. I need a translate of tghe code to VB.NET or VB6
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines