Hi there,

Searched the archives on this but still can't find a solid answer.

I've managed to display a bitmap from an embedded file, however i can't seem
to figure how to play a wav file from an embedded file.

Any help would be greatly appreciated.

Thanks

Re: Play wav from embedded file by Sergey

Sergey
Thu Apr 28 07:08:11 CDT 2005

Get a Stream from a resource and use OpenNETCF.Multimedia.Audio.Player
to play it:
http://www.opennetcf.org/SourceBrowse/view.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF/Multimedia/Audio/Player.cs

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Rob S wrote:
> Hi there,
>
> Searched the archives on this but still can't find a solid answer.
>
> I've managed to display a bitmap from an embedded file, however i can't seem
> to figure how to play a wav file from an embedded file.
>
> Any help would be greatly appreciated.
>
> Thanks

Re: Play wav from embedded file by RobS

RobS
Thu Apr 28 07:46:11 CDT 2005

An example of how to get a stream... ?

Is it just a simple FileStream?

"Sergey Bogdanov" wrote:

> Get a Stream from a resource and use OpenNETCF.Multimedia.Audio.Player
> to play it:
> http://www.opennetcf.org/SourceBrowse/view.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF/Multimedia/Audio/Player.cs
>
> Best regards,
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> Rob S wrote:
> > Hi there,
> >
> > Searched the archives on this but still can't find a solid answer.
> >
> > I've managed to display a bitmap from an embedded file, however i can't seem
> > to figure how to play a wav file from an embedded file.
> >
> > Any help would be greatly appreciated.
> >
> > Thanks
>

Re: Play wav from embedded file by Sergey

Sergey
Thu Apr 28 07:53:03 CDT 2005

Try this:
Assembly.GetExecutingAssembly(­).GetManifestResourceStream()

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Rob S wrote:
> An example of how to get a stream... ?
>
> Is it just a simple FileStream?
>
> "Sergey Bogdanov" wrote:
>
>
>>Get a Stream from a resource and use OpenNETCF.Multimedia.Audio.Player
>>to play it:
>>http://www.opennetcf.org/SourceBrowse/view.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF/Multimedia/Audio/Player.cs
>>
>>Best regards,
>>Sergey Bogdanov
>>http://www.sergeybogdanov.com
>>
>>
>>Rob S wrote:
>>
>>>Hi there,
>>>
>>>Searched the archives on this but still can't find a solid answer.
>>>
>>>I've managed to display a bitmap from an embedded file, however i can't seem
>>>to figure how to play a wav file from an embedded file.
>>>
>>>Any help would be greatly appreciated.
>>>
>>>Thanks
>>