Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: 5 Apr 2006 23:57:42 -0700,    group: microsoft.public.win32.programmer.directx.audio        back       


Trouble in playing wma file in smartphone   
hi:
I run a basic sample on smartphone device to play a wma file, but get a

error....
Here is the code snippet:
---------------------------------------------------------------------------------------------
       IGraphBuilder *pGraphBuilder;
        IMediaControl *pMediaControl;
        HRESULT hr = CoInitialize(NULL);

        if(FAILED(hr))
        {
           MessageBox(L"ERROR: failed to initialize COM library!!!");
            return;
        }

        hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC,
IID_IGraphBuilder, (void **) &pGraphBuilder);
        if(FAILED(hr))
        {
            MessageBox(L"ERROR: failed to create Filter Graph Manager
instance!!");
            return;
        }

        pGraphBuilder->QueryInterface(IID_IMediaControl, (void **)
&pMediaControl);


        hr = pGraphBuilder->RenderFile(L"\\test.wma", NULL);
        if(SUCCEEDED(hr))
        {
            pMediaControl->Run();
            MessageBox(L"click ok to end playback...");
        }
        else
            MessageBox(L"ERROR: failed to run Filter Graph...");

        pMediaControl->Release();
        pGraphBuilder->Release();
        CoUninitialize();
---------------------------------------------------------------------------------------------
I get a 0x80040216 (VFW_E_NOT_FOUND) error on RenderFile. The
description of VFW_E_NOT_FOUND is "An object or name was not found".

Could someone provide a clue?? 
Best Regards.
date: 5 Apr 2006 23:57:42 -0700   author:   Tony

Re: Trouble in playing wma file in smartphone   
On 5 Apr 2006 23:57:42 -0700, Tony wrote:

>        hr = pGraphBuilder->RenderFile(L"\\test.wma", NULL);
> ---------------------------------------------------------------------------------------------
> I get a 0x80040216 (VFW_E_NOT_FOUND) error on RenderFile. The
> description of VFW_E_NOT_FOUND is "An object or name was not found".

This error suggests that the file was not found.  I don't know what the
convention is for file specs for SmartPhones probably better off asking in
a wince group for that part.

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 6 Apr 2006 06:44:31 -0600   author:   The March Hare [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us