IBM developerWorks
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 12th, 2003, 09:24 PM
#define Gangsta's Avatar
#define Gangsta #define Gangsta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Representin' Quebec
Posts: 106 #define Gangsta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Sound in OpenGL

This is probably an easy stupid question. But I'm still deciding on wether to choose DirectX or OpenGL. I was going to go for OpenGL because of the simplicity and its portability, but I heard we have to use DirectSound for sound... Do I need the DirectX SDK to use DirectSound? Or is there an other way to play MIDI or .wav files in OpenGL? (I'm using C++ if that can help you answer)

Reply With Quote
  #2  
Old July 13th, 2003, 12:00 AM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
There probably are, but none will be as platform independent as OGL. Most people use DirectSound because it's easy to work with and well supported in Windows. Yes, DirectSound is part of DirectX, so I think you'd need the SDK for that, but I don't remember. It's been awhile since I've worked with it.

Though there are other tools out there, I'm sure. From a quick google, try: http://ccrma-www.stanford.edu/~gary/rtaudio/
Hadn't used it, but looks nice.

Reply With Quote
  #3  
Old July 13th, 2003, 08:25 AM
jcspray jcspray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 jcspray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Doing sound with OpenGL would be like doing matrix algebra with winzip. But I'm sure you didn't quite mean it like that ;-)

I recommend SDL_mixer. If you're not using direct3d, then DirectX has little to offer most developers beyond SDL. The major bonus of using SDL is that your code becomes very easily portable to mac, windows, linux, solaris, whatever floats your boat. Standards compliant C++/SDL/OpenGL should 'just work' on any supported platform.

Reply With Quote
  #4  
Old July 13th, 2003, 10:11 AM
#define Gangsta's Avatar
#define Gangsta #define Gangsta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Representin' Quebec
Posts: 106 #define Gangsta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Cool, I checked around with both, but it said that you had to put a really high buffer rate with RtAudio on Windows or it will crash... And to use RtAudio I need the DirectSound source and headers. And SDL_mixer looks pretty good. Is SDL_mixer often updated?

And I heard about OpenAL...how does that look?

EDIT: Another thing about SDL_mixer, is it really 'known' by a lot of programmers? And, do you think it would be good enough to write a midi sequensing program?

Reply With Quote
  #5  
Old July 14th, 2003, 07:27 AM
jcspray jcspray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 jcspray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OpenAL is a more advanced solution than SDL_mixer. It includes powerful functionality relating to positional sound/effects. I believe that several commercial games have made use of OpenAL, including UT2003. If you're looking for something with industrial whack for 3d multimedia, then OpenAL may be for you.

As for the amount of work going into SDL_mixer, I think that it's relatively complete. It's certainly not been abandoned, if that's what you mean.

I believe that SDL_mixer is popular amongst non-directx developers.

I am not informed on midi stuff. SDL_mixer has some basic timidity-based functionality, not sure if that's what you're looking for.

Reply With Quote
  #6  
Old July 14th, 2003, 12:14 PM
#define Gangsta's Avatar
#define Gangsta #define Gangsta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Representin' Quebec
Posts: 106 #define Gangsta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Well...actually I don't know what I'm looking for yet! But what is timitdity? I went on the OpenAL and only a little bit of the hardware companies support it. And I have a good ol' crappy P166 with a 'no name' sound card. So until I get my laptop I want to hear what I'm doing! And why did you recommend SDL_mixer, do you have experience with it?

Reply With Quote
  #7  
Old July 16th, 2003, 12:23 PM
#define Gangsta's Avatar
#define Gangsta #define Gangsta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Representin' Quebec
Posts: 106 #define Gangsta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
How about FMOD? It looks pretty good. It's even portable one the PS2 AND XBox! Anybody know a lot about FMOD?

Reply With Quote
  #8  
Old July 17th, 2003, 07:06 AM
jcspray jcspray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 jcspray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have a little experience with SDL_mixer - I found the documentation really sane and easy to understand.

Timidity is a free software midi synth.

As for OpenAL, isn't that just going to use whatever sound implementation is present on your OS, rather than needing to support different sound cards itself? I exclude the advanced functionality (EAX, etc) of course.

I've never heard of FMOD. Don't read anything into that, I'm no sound-guru.

Reply With Quote
  #9  
Old July 17th, 2003, 12:24 PM
#define Gangsta's Avatar
#define Gangsta #define Gangsta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Representin' Quebec
Posts: 106 #define Gangsta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Cool, thanks. Timidity is exactly what I'm looking for (i think...) But I downloaded an exmple program using OpenAL and the first thing it said was: DINPUT8.DLL was not found.

If you didn't know, that is for DirectInput. I don't get this... why would it need that?

FMOD is here: http://www.fmod.org/ just incase you want to see it and give me your opinion.

Reply With Quote
  #10  
Old July 18th, 2003, 09:02 AM
jcspray jcspray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 jcspray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I guess that this particular example program used directinput - it certainly isn't a requirement for OpenAL. I quite frequently code something with a depenance on SDL when it's not strictly necessary just out of habit :-)

As for fmod, thanks for the link - I hadn't heard about that project. It's not free software, so I probably wouldn't use it myself, but I'm glad to be aware of it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Sound in OpenGL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway