Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C/C++ Code to play music modules (ex. .mod, .s3m, .xm, etc)

476 views
Skip to first unread message

mathew dodgson

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to
than...@concentric.net (Tom Papas) wrote:

>Hello. I'm looking for C/C++ routines to play music modules. This is
>for a game. I don't want to use .mid files. Modules are more versatile
>for me since I don't own any midi equipment. Anyway, does anyone know
>where I can get example code to do this? I want to be able to play
>either the .s3m or .xm format mainly. I'd appreciate any information
>you can provide. Thanks in advance!

> Tom

If any of you would like it, I have a mod playing routine (for GUS and
SB) that could be easily modified to play sound effects also. It works
for Watcom dos4gw. I would allow it to be used for free: I think
$10,000 is too large for smaller programmers.

The mixing routines are very fast: they have no problem playing mods
and take about 2% CPU time. It is completely written in ASM, though
this will change. (Only plays 8 channel mods now, but easily changed)

If there are enough people who want this, I will do it.

wells

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to mathew dodgson
mathew dodgson wrote:

> If any of you would like it, I have a mod playing routine (for GUS and
> SB) that could be easily modified to play sound effects also. It works
> for Watcom dos4gw. I would allow it to be used for free: I think
> $10,000 is too large for smaller programmers.
>

> If there are enough people who want this, I will do it.

That would be really great of you to do. I to have been looking for a
MOD,S3M,etc. sound library. I am currently using SOS but that doesnot
play mods and has a big licensing fee. I do not mind paying, but
really... Anyway I feel alot of us out here may drop our expectations
from libraries like the described Galaxy and use a nice fast simply FREE
system.

Thanks in advance,
Alex

sco...@cstone.net

unread,
Mar 9, 1996, 3:00:00 AM3/9/96
to
than...@concentric.net (Tom Papas) wrote:

>Hello. I'm looking for C/C++ routines to play music modules. This is
>for a game. I don't want to use .mid files. Modules are more versatile
>for me since I don't own any midi equipment. Anyway, does anyone know
>where I can get example code to do this? I want to be able to play
>either the .s3m or .xm format mainly. I'd appreciate any information
>you can provide. Thanks in advance!

> Tom

Simple method - find the mci mod player drivers that I used to have a
while back. A friend found an mci driver that could play mod files
through the wave device with the simple programming of mci commands.
Since then, I've changed harddisks probably a dozen times and can't
find the package anywhere. It was really good too! If you ever run
into it, please email me a copy (I'll do the same).
Hard method - go to a demo groups ftp site and look for c/c++ code to
play under the dos world. Using the mixing and sampling algorythms to
build you audio data and pipe it use the waveout routines. Good luck
with this method.

Good Luck,
N. Scott Vann
Motivational Concepts, Inc.
Multimedia Training Systems

Gerry Giese

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
big...@melbpc.org.au (mathew dodgson) wrote:


>If any of you would like it, I have a mod playing routine (for GUS and
>SB) that could be easily modified to play sound effects also. It works

> ...[snip]...


>If there are enough people who want this, I will do it.

I'm interested! Where do you plan to post it? Or do you plan to
e-mail it?

Thanks!


Gerry Giese
ggi...@aig.vialink.com


Gerry Giese

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
big...@melbpc.org.au (mathew dodgson) wrote:

>than...@concentric.net (Tom Papas) wrote:

>>Hello. I'm looking for C/C++ routines to play music modules. This is
>>for a game. I don't want to use .mid files. Modules are more versatile
>>for me since I don't own any midi equipment. Anyway, does anyone know
>>where I can get example code to do this? I want to be able to play
>>either the .s3m or .xm format mainly. I'd appreciate any information
>>you can provide. Thanks in advance!

>> Tom

>If any of you would like it, I have a mod playing routine (for GUS and


>SB) that could be easily modified to play sound effects also. It works

>for Watcom dos4gw. I would allow it to be used for free: I think
>$10,000 is too large for smaller programmers.

>The mixing routines are very fast: they have no problem playing mods


>and take about 2% CPU time. It is completely written in ASM, though
>this will change. (Only plays 8 channel mods now, but easily changed)

>If there are enough people who want this, I will do it.

I'd love to get a copy! Let me know where you post it!

Thanks!


Gerry Giese
ggi...@aig.vialink.com


Gerry Giese

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
big...@melbpc.org.au (mathew dodgson) wrote:

>than...@concentric.net (Tom Papas) wrote:

>> Tom

I'd love to get a copy! Let me know when you make it available!

Thanks!


Gerry Giese
ggi...@aig.vialink.com


Vector

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
In article <3141aee1...@news.compuserve.com>, 10132...@compuserve.com (Wouter Dijkslag) wrote:

>>If there are enough people who want this, I will do it.
>>
>>

>Please send it to me.

Me too! 2% WOW!
<G>

Gerry Giese

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
ggi...@aig.vialink.com (Gerry Giese) wrote:
>big...@melbpc.org.au (mathew dodgson) wrote:
>>than...@concentric.net (Tom Papas) wrote:
>>>Hello. I'm looking for C/C++ routines to play music modules. This is
>>>..[snip]..

>>If any of you would like it, I have a mod playing routine (for GUS and
>>..[snip]..

>I'd love to get a copy! Let me know when you make it available!
>

>Gerry Giese
>ggi...@aig.vialink.com

Whoops! Sorry about all the messages - I got errors connecting
to the server when I tried to send the messages last week, and
thought they'd been lost, but they'd actually been queued and
were sent out when I wrote a different msg this morning!

Hasta!

Gerry Giese
ggi...@aig.vialink.com


Lars Troen

unread,
Mar 12, 1996, 3:00:00 AM3/12/96
to

Vector (cow...@limestone.kosone.com) wrote:

I suggest you upload your library to
ftp.cdrom.com/demos/incoming/music/programs

PS: There are also other .mod/.s3m/.xm libraries out with full source code. The
two most known (IMO) are midas and mikmod which both comes with full c-source code
and supports several sound boards (gus/sb/...).

Jorma Peltoniemi

unread,
Apr 12, 1996, 3:00:00 AM4/12/96
to
In article <314678...@bbs.1usa.com>, Joe Radkowski <Radko...@bbs.1usa.com> says:
>
>> I'm interested! Where do you plan to post it? Or do you plan to
>> e-mail it? Yeah, where ever he posts it or puts it up on FTP send me a note
>about it. L8r
>
> Joe
Could I also have it. Please !!!
I can't get any players working with TC

Dion Barrier

unread,
Apr 13, 1996, 3:00:00 AM4/13/96
to
I am also interested may I please have a copy also. Thanks in advance!

Viper out....

vi...@europa.com

Visit my C/C++ programming site at: http://www.europa.com/~viper/C-CPP_Links.html






Warren E. Downs

unread,
Apr 15, 1996, 3:00:00 AM4/15/96
to Dion Barrier
Dion Barrier wrote:
>
> pelt...@sci.fi (Jorma Peltoniemi) writes:
> > In article <314678...@bbs.1usa.com>, Joe Radkowski <Radko...@bbs.1usa.com> says:
> > >
> > >> I'm interested! Where do you plan to post it? Or do you plan to
> > >> e-mail it? Yeah, where ever he posts it or puts it up on FTP send me a note
> > >about it. L8r

I'm interested as well.

Warren
--

_/ _/ _/ _/_/_/ _/_/ Warren E. Downs - Computer Programmer
_/ __/ _/ _/ _/ _/ Campus Computer Center, Walla Walla College
_/_/_/_/ _/_/ _/ _/ 204 S. College Aveue, College Place, WA 99324
__/ __/ _/ _/ _/ Phones: 509-529-2833 (home), 509-527-2317 (office)
_/ _/ _/_/_/ _/_/_/ eMail: mailto://dow...@wwc.edu
Ftp: ftp://rgh-downwa.wwc.edu (My private ftp server)
Check out my Operating System project:
WWW: http://rgh-downwa.wwc.edu (My private web site)
http://moonbase.wwc.edu/homepages/downwa (Another place to check)

Life's a lot like money; you spend it, then it's gone. Spend wisely.

del...@frontiernet.net

unread,
Apr 16, 1996, 3:00:00 AM4/16/96
to
pelt...@sci.fi (Jorma Peltoniemi) wrote:

Add me to the list. I would love to have C code to play s3m and mod
files as I hope to get into demo and game programming. I do have
scream tracker in fact, so especially the s3m format is of interest.

---
Tika
del...@frontiernet.net
http://www.frontiernet.net/~delta4


Alex

unread,
Apr 16, 1996, 3:00:00 AM4/16/96
to
pelt...@sci.fi (Jorma Peltoniemi) wrote:
>In article <314678...@bbs.1usa.com>, Joe Radkowski <Radko...@bbs.1usa.com> says:
>>
>>> I'm interested! Where do you plan to post it? Or do you plan to
>>> e-mail it? Yeah, where ever he posts it or puts it up on FTP send me a note
>>about it. L8r
>>
>> Joe
>Could I also have it. Please !!!
>I can't get any players working with TC

Have you people downloaded ID's wolfenstain-3D source? Well you should. It has some great code
which can help you play music. it doesn't actualy give you everything, you'll have to write
quite a lot yourself but thats the fun on making it work, not just using someones
code word for word.
Alex

Massimiliano Mantione

unread,
Apr 16, 1996, 3:00:00 AM4/16/96
to
del...@frontiernet.net wrote:
> Add me to the list. I would love to have C code to play s3m and mod
> files as I hope to get into demo and game programming. I do have
> scream tracker in fact, so especially the s3m format is of interest.

Sorry, but I missed the previous messages and do not know what's
going on exactly.

Anyway, I use DJGPP and the SB05 sound library, which comes with
full source code and CAN play MOD files (not s3m -yet-).

At the moment I am updating the library to allow a sort of
hyper-textual module, to give my game contestual music.

You can find the library everywhere you find DJGPP (sb05_dj2.zip).

All the best,

Massimiliano

--
/---------------------------------------------------------\
0 | Massimiliano Mantione [mant...@mailer.cefriel.it] | 0
/--+---------------------------------------------------------+--\
| /\ ._. /\ |
| __/ \__ / o \ /` ,__ /` __/ \__ |
| \ \ / / \ `-' /_ ___\ / __ ____, \ \ / / |
| >--()--< ,-. \ / \ / | / / \ / / / >--()--< |
| /__/ \__\ |o' / / / \__/ / \__/ / / / /__/ \__\ |
| \ / `--' ' ` '` ` ` ` \ / |
| \/ ------------------------------------ \/ |
\--+---------------------------------------------------------+--/
0 | CEFRIEL Via Emanueli, 15 (20126 MILANO) [Italy] | 0
\---Tel: +39-2-66100083 (66100750) [Fax: +39-2-66100448]--/

Keith Petersen

unread,
Apr 19, 1996, 3:00:00 AM4/19/96
to
In article <31739E...@mailer.cefriel.it>, mant...@mailer.cefriel.it says...

>
>del...@frontiernet.net wrote:
>> Add me to the list. I would love to have C code to play s3m and mod
>> files as I hope to get into demo and game programming. I do have
>> scream tracker in fact, so especially the s3m format is of interest.
>
>Sorry, but I missed the previous messages and do not know what's
>going on exactly.
>
>Anyway, I use DJGPP and the SB05 sound library, which comes with
>full source code and CAN play MOD files (not s3m -yet-).
>
>At the moment I am updating the library to allow a sort of
>hyper-textual module, to give my game contestual music.
>
>You can find the library everywhere you find DJGPP (sb05_dj2.zip).

DJGPP is now available from Simtel.Net and its mirrors. See the
URLs below and my posting of the latest list of authorized Simtel.Net
mirror sites.

Keith
--
Keith Petersen, General Manager of Simtel(tm)
Simtel.Net is a service mark of Walnut Creek CDROM
Internet: w8...@Simtel.Net http://www.simtel.net/simtel.net/
Uucp: uunet!simtel.net!w8sdz ftp://ftp.simtel.net/pub/simtelnet


Barog

unread,
Apr 23, 1996, 3:00:00 AM4/23/96
to
Please add me to the list I need some help with making my own mod
player so code to look at would be very helpful.

Thanks!


Tekin Tontu

unread,
Apr 26, 1996, 3:00:00 AM4/26/96
to

ANNOUNCE,

FlexED - eats hotdogs for breakfast. HTML editor with built in
WYSIWIG viewer, colour coded HTML tags, HTML tag dialog. Download
a copy today !. Ideal for the beginner to the professional, learn
HTML the easy way

Supported Platforms

Windows 3.11
Windows 95
Windows NT

Download a copy today

http://www.infoflex.com.au/flexed.htm

--
ooO====================OoooO===============================Ooo
o Tekin Tontu O email: te...@infoflex.com.au o
o Ph: +61 (2) 648 4515 O home: http://www.infoflex.com.au o
ooO====================oOOOo===============================Ooo
for fun http://www.infoflex.com.au/games/gpoker.html

Patrick Hanevold

unread,
Apr 27, 1996, 3:00:00 AM4/27/96
to

>Please add me to the list I need some help with making my own mod
>player so code to look at would be very helpful.

Somone sending out player sources?
If so, please add me to the list too.

-----------------------------------------------------------------------------
.. Patrick Hanevold - VR developer - patrick....@login.eunet.no ///
.... Amiga and official Be developer - Visual Technologies \\\///
...... Whats this line for? \X//
-----------------------------------------------------------------------------


P Ross

unread,
Apr 28, 1996, 3:00:00 AM4/28/96
to

In article <580.6690...@login.eunet.no> patrick....@login.eunet.no (Patrick Hanevold) writes:
>>Please add me to the list I need some help with making my own mod
>>player so code to look at would be very helpful.
>Somone sending out player sources?
>If so, please add me to the list too.

First the good news:
Source code for playing .mod, .xm, .s3m files under Borland or Watcom is
available via ftp x2ftp.oulu.fi pub/msdos/programming/mxlibs/mikmod*.zip

Now the bad news:
Anyone lame enough to follow up this sort of thing with 'me too' posts will
undoubtedly not have the intelligence to get this source code working.

Paul
----

Patrick Hanevold

unread,
Apr 29, 1996, 3:00:00 AM4/29/96
to

>Now the bad news:
>Anyone lame enough to follow up this sort of thing with 'me too' posts will
>undoubtedly not have the intelligence to get this source code working.

Yeah, sure. What makes *you* so smart?

-----------------------------------------------------------------------------
.. Patrick Hanevold - VR developer - patrick....@login.eunet.no ///
.... Amiga and official Be developer - Visual Technologies \\\///

...... 41F900DFF0001168000601810828000A001666F24E75 \X//
-----------------------------------------------------------------------------


P Ross

unread,
Apr 29, 1996, 3:00:00 AM4/29/96
to

patrick....@login.eunet.no (Patrick Hanevold) writes:
>>Now the bad news:
>>Anyone lame enough to follow up this sort of thing with 'me too' posts will
>>undoubtedly not have the intelligence to get this source code working.
>Yeah, sure. What makes *you* so smart?

I don't post 'me too' or use aol :)

Paul

Patrick Hanevold

unread,
Apr 30, 1996, 3:00:00 AM4/30/96
to

>>>Now the bad news:
>>>Anyone lame enough to follow up this sort of thing with 'me too' posts will
>>>undoubtedly not have the intelligence to get this source code working.
>>Yeah, sure. What makes *you* so smart?

>I don't post 'me too' or use aol :)

I only post 'me too', when I have lost the original message, and dont know who
posted it. And I dont use aol either.

-----------------------------------------------------------------------------
.. Patrick Hanevold - VR developer - patrick....@login.eunet.no ///
.... Amiga and official Be developer - Visual Technologies \\\///

...... Power Onyx? Nah, they boot too slow. \X//
-----------------------------------------------------------------------------


Leimy

unread,
May 1, 1996, 3:00:00 AM5/1/96
to

Hey guess what this newsgroup IS for. It's for code exchanges and
getting answers to questions about code for MSDOS programmers. Now as
far as I see it me too's are a necessary evil. And anyone using the fact
that we use me too's in order to make us seem unintelligent probably is
an AOL user.
POS
Anymay wasn't the Good Times email virus created by an AOL user or at
least someone posing to be one perhaps.

c-ya
dave

Simon Hosie

unread,
May 5, 1996, 3:00:00 AM5/5/96
to

Leimy:

> Hey guess what this newsgroup IS for.
> ...

Are there newsreaders out there that just don't show you what
groups a thread is on at all? No wonder crossposting is such a
problem - perhaps if people wrote newsreaders that gave you a clear
idea of where you were posting before you posted then there wouldn't
be such a problem.

Jorma Valjakka

unread,
May 21, 1996, 3:00:00 AM5/21/96
to

w8...@Simtel.Net (Keith Petersen) wrote:

>In article <31739E...@mailer.cefriel.it>, mant...@mailer.cefriel.it says...
>>
>>del...@frontiernet.net wrote:
>>> Add me to the list. I would love to have C code to play s3m and mod
>>> files as I hope to get into demo and game programming. I do have
>>> scream tracker in fact, so especially the s3m format is of interest.
>>
Sorry, but I missed the previous messages and do not know what's
going on exactly.

I would like to do something with midi (play individual midi notes
etc.) If anybody knows somethin to help me to get started.
I would like to use win95. Some library with very hilevel funktions
or eaven some artikle that would explane what this microsoft
multimedia skd:s midifunktions do or something.
Joppe


Chris Marriott

unread,
May 22, 1996, 3:00:00 AM5/22/96
to

In article <4nt9is$8...@news.mdata.fi>, Jorma Valjakka
<jo...@megabaud.fi> writes

>I would like to do something with midi (play individual midi notes
>etc.) If anybody knows somethin to help me to get started.
>I would like to use win95. Some library with very hilevel funktions
>or eaven some artikle that would explane what this microsoft
>multimedia skd:s midifunktions do or something.

You should have documentation on the multimedia API functions of Windows
95 provided with the on-line help of your compiler.

Chris

--------------------------------------------------------------------------
Chris Marriott, Warrington, UK | Author of SkyMap v3 award-winning
ch...@chrism.demon.co.uk | shareware Win31/Win95 planetarium.
For full info, see http://www.execpc.com/~skymap
Author member of Association of Shareware Professionals (ASP)
--------------------------------------------------------------------------


Doug Swenson

unread,
May 26, 1996, 3:00:00 AM5/26/96
to

CM>>I would like to do something with midi (play individual midi notes
CM>>etc.) If anybody knows somethin to help me to get started.

I have been trying to find information on writing a DOS program to
directly use a SB card. That is, w/out feeding it a .mid file, or a
.wav file.

I'd like to load the SB driver and then play specific notes (sounds)
from the program.

I wonder how games programmers do it. Perhaps they have their own
drivers that interface w/ the SB cards?
___
X OLX 1.53 X German word for constipation - Farfrompoopin

Neptho

unread,
Jul 19, 1996, 3:00:00 AM7/19/96
to

Please add me to this list. I am currently working with 3 differing os's,
and would
love to get S3M and MOD support for Windows environment. Thank You.

- Neptho
-----
Neptho T. | Linux: It ain't an OS, It's a lifestyle.
nep...@hagan.reno.nv.us | KISS: Keep your .sigs simple, stupid.


0 new messages