By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,218 Members | 1,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,218 IT Pros & Developers. It's quick & easy.

audio functions in Winmm.dll

P: n/a
i need to play (in a windows app) all or part of wav/mp3/midi files thru
software without a user interface. i also need to allow the user to choose
the midi instrument to play the midi files by filling a list box with
available instruments.

i would prefer not to have to install a windows media player, or directx or
any special installations on machines that will run it.

it looks to me i'm best off by using Winmm.dll functions. where can i find
documentation for Winmm.dll ??

i know nothing about the playing of audio files in software, is there any
place i can get any basic info on this?

it looks to me that my needs are simple, 1)to play all or parts of wav, mp3,
or midi files, 2) to select the midi instruments, and it shouldn't be rocket
science to do it. i would appreciate some help on finding documentation of
Winmm.dll functions, and some basic intro on this subject.

thanks for any help

ray


Oct 24 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"ray well" <no****@nospam.comwrote in message
news:eD**************@TK2MSFTNGP04.phx.gbl...
>i need to play (in a windows app) all or part of wav/mp3/midi files thru
software without a user interface.
Check the docs for PlaySound(). It's the easiest way to play media files.
It's also the one which offers the least amount of control over the
playback.

Playing a .mp3 which does not have a RIFF header common to .wav files is not
possible with that function.

I'm not sure if the function will play the midi files. I do know that you
can play them using the old Media Control Interface (MCI) functions -
mciSendCommand() etc
i also need to allow the user to choose the midi instrument to play the
midi files by filling a list box with available instruments.
This is more difficult. The question belongs (actually all of your
questions do) in a multi-media group. I'd start with this one

microsoft.public.win32.programmer.mmedia

and hope for a reply from Chris P. :-)
it looks to me i'm best off by using Winmm.dll functions. where can i find
documentation for Winmm.dll ??

i know nothing about the playing of audio files in software, is there any
place i can get any basic info on this?
The documentation on the audio functions in Win32 is with the documentation
on Windows - at
http://msdn.microsoft.com in general.

Specifically, PlaySound is documented at
http://msdn.microsoft.com/library/de..._playsound.asp
it looks to me that my needs are simple, 1)to play all or parts of wav,
mp3, or midi files, 2) to select the midi instruments, and it shouldn't be
rocket science to do it. i would appreciate some help on finding
documentation of Winmm.dll functions, and some basic intro on this
subject.
You'll also find multimedia samples in the Platform SDK.

Regards,
Will
Oct 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.