🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #455

Re: 2 questions regarding MP3 files.

#455
From: 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
Technical Details
Message-ID: <40b8fb35$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b7807f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10d0fc,4014f9cb13ba665
X-Google-Attributes: gid10d0fc,public
From: "Rodrigo G�mez" <rgomezREMOVECAPS@PLEASEmsa.com.mx>
Newsgroups: borland.public.cppbuilder.multimedia
References: <40b7807f$1@newsgroups.borland.com>
Subject: Re: 2 questions regarding MP3 files.
Date: Sat, 29 May 2004 16:05:37 -0600
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 201.129.144.52
Message-ID: <40b8fb35$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085864757 201.129.144.52 (29 May 2004 14:05:57 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail