🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages Started by Dragons Master Fri, 28 May 2004 19:11
2 questions regarding MP3 files.
#645
Author: Dragons Master
Date: Fri, 28 May 2004 19:11
18 lines
1689 bytes
Hello Folks,

I have 2 questions..
1) I was wondering if there's a way other than using the TMediaPlayer
component to play MP3 files. Also I was wondering how I can prevent the
program from terminating in cases of an error with the TMediaPlayer (for
e.g. if the file doesn't exist or if the machine doesn't have a sound
card).

2) I am creating a game and I was wondering if it's possible to have a 
.mp3 file inside a resource file. Also if this is possible how do I call
it? I'm not a pro @ using resource files, if u guys have an example I
would be grateful but I know it's rude to ask so I could look myself, I
just need to know if it's possible and how to put a .mp3 file inside a
resource file.

Thanks a lot fellas,
  - Ben Bond Pere
Re: 2 questions regarding MP3 files.
#455
Author: Rodrigo G�mez
Date: Sat, 29 May 2004 22:05
38 lines
2420 bytes
about 1)
There are a lot of libraries out there that let you play mp3 files. MMTools
comes to my mind, but there are a lot.

about 2)
I won't go near from using TMediaPlayer from a game! In a game you need
speed and more speed. Again, the previos one solves this. About the resource
files, yes, it should be possible to do this, and maybe some of the
libraries have already implemented this. I haven't done it, but in the worse
case, you could create the code to access it and put the audio in a
TMemoryStream, and at least MMTools allows you to play from a TStream
decendant.

HTH
-- 
Rodrigo G�mez
http://rgomez.msa.com.mx/gallery/

"Dragons Master" <webmaster@dgemu.com> escribi� en el mensaje
news:40b7807f$1@newsgroups.borland.com...
> Hello Folks,
>
> I have 2 questions..
> 1) I was wondering if there's a way other than using the TMediaPlayer
> component to play MP3 files. Also I was wondering how I can prevent the
> program from terminating in cases of an error with the TMediaPlayer (for
> e.g. if the file doesn't exist or if the machine doesn't have a sound
> card).
>
> 2) I am creating a game and I was wondering if it's possible to have a
> .mp3 file inside a resource file. Also if this is possible how do I call
> it? I'm not a pro @ using resource files, if u guys have an example I
> would be grateful but I know it's rude to ask so I could look myself, I
> just need to know if it's possible and how to put a .mp3 file inside a
> resource file.
>
> Thanks a lot fellas,
>   - Ben Bond Pere
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads