🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Play MP3 using Windows waveOut intrface

#95
From: Jonathan Benedicto
Date: Sat, 05 Nov 2005 01:01
16 lines
1642 bytes
Lapo Guidi wrote:
> I'm trying to play an MP3 using the Windows waveOut interface.
> I have no idea how to do that, but I have a code that can play a wave
> file using buffers.
> I would do the same but for MP3 files instead of WAV files.
> Anybody can help me?

Playing back a MP3 is not so easy to do. You'll need to use the Audio 
Compression Manager (ACM) as well as waveOut. This also requires the MP3 
codec to be installed, but I think that WMP installs that.

Basically you'll need to create a AM stream that converts the MP3 audio to 
PCM audio, and then you feed that into waveOut. Look up ACM and waveOut, 
you should be able to find something.

Jonathan
Technical Details
Message-ID: <436c0460$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <436aa0da@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,99d0b7469faaccd5
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.multimedia
References: <436aa0da@newsgroups.borland.com>
Subject: Re: Play MP3 using Windows waveOut intrface
Date: Fri, 4 Nov 2005 20:01:38 -0500
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 69.158.98.182
Message-ID: <436c0460$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131152480 69.158.98.182 (4 Nov 2005 17:01:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail