|
| How to play a mp3 stream |
 |
Mon, 30 Jul 2007 11:48:18 -030 |
I need to play a mp3 stream directly from the memory, without creating a
temp file. Could be using a string or a pointer...some thing like this.
I've searched for windows API functions and Delphi functions, but I couldn't
find any one.
I hope someone could help me with this task!
Thanks,
Alexandre
|
| Post Reply
|
| Re: How to play a mp3 stream |
 |
30 Jul 2007 23:51:27 -0700 |
Hi,
You can do this with DirectShow using DSPack library (http://www.progdigy.com).
All you have to do is to change the AsyncReader sample from that library, so
that it will read the data from memory instead of file. Then build a graph with
your new source filter and render it's output pin.
Regards,
Tsviatko Jongov
http://tsviatko.jongov.com
"Alexandre Palomo" <alexandre@digifort.com.br> wrote:
>I need to play a mp3 stream directly from the memory, without creating a
>temp file. Could be using a string or a pointer...some thing like this.
>I've searched for windows API functions and Delphi functions, but I couldn't
>find any one.
>
>I hope someone could help me with this task!
>
>
>Thanks,
>Alexandre
>
>
|
| Post Reply
|
| Re: How to play a mp3 stream |
 |
Tue, 31 Jul 2007 17:06:51 +100 |
cbAudioPlay from http://carlosb.com also provides an excellent example
of using DirectShow. It wraps up the DirectX 8 version of DSPack but can
be easily ported to use the latest version of DSPack if required.
Cheers, harrie.
Tsviatko Jongov wrote:
> Hi,
> You can do this with DirectShow using DSPack library
(http://www.progdigy.com).
>
> All you have to do is to change the AsyncReader sample from that library,
so that it will read the data from memory instead of file. Then build a graph
with your new source filter and render it's output pin.
>
> Regards,
> Tsviatko Jongov
> http://tsviatko.jongov.com
>
>
>
> "Alexandre Palomo" <alexandre@digifort.com.br> wrote:
>> I need to play a mp3 stream directly from the memory, without creating
a
>> temp file. Could be using a string or a pointer...some thing like
this.
>> I've searched for windows API functions and Delphi functions, but I
couldn't
>> find any one.
>>
>> I hope someone could help me with this task!
>>
>>
>> Thanks,
>> Alexandre
>>
>>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|