DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Site Discussions > Articles Discussion
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-15-2003, 12:09 AM   #1
DmEditor
DevMaster Editor
 
Join Date: Jan 2005
Posts: 54
Default

OpenAL Lesson 6: Advanced Loading and Error Handles
Author:: Jesse Maurais
Description:

Post your discussions/comments here by clicking on Add Reply.
DmEditor is offline   Reply With Quote
Old 10-19-2005, 08:43 PM   #2
A.Russell
New Member
 
Join Date: Aug 2004
Posts: 15
Default Re: OpenAL Lesson 6: Advanced Loading & Error Handles

I've been trying to run a program I made using OpenAL on a new computer. I have DirectX9.0c installed, but my application crashes when OpenAL tries to open a device. Setting the device to open to "NULL" (supposed to select the default device) or "DirectSound3D" does not work.

This application runs perfectly on my other WinXP PC. Any ideas what could be missing my new Windows box? This needs to be sorted out before I can distribute my program.
A.Russell is offline   Reply With Quote
Old 10-20-2005, 04:15 AM   #3
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default Re: OpenAL Lesson 6: Advanced Loading & Error Handles

In somecase, when NULL selected the default device, it will actually select DirectSound3D (as this is actually the default device).

You could try "DirectSound" or "MMSYSTEM", see if that works.

There was a lot of talk about the naming convensions on the OpenAL mailing list a few months back, but I cant for the life of me find the e-mail (so much for GMail's glorified seraching system!).

Though the fact that it is actually crashing (and not just failing) is a real worry, and leads me to belive that you have maybe got incorrect dll and library versions?

Spree
SpreeTree is offline   Reply With Quote
Old 10-20-2005, 08:40 PM   #4
A.Russell
New Member
 
Join Date: Aug 2004
Posts: 15
Default Re: OpenAL Lesson 6: Advanced Loading & Error Handles

How embarrassing. I hadn't installed the OpenAL distributable on my new PC.

Too many years of good beer and Scotch Whisky.

Thanks again for your help Spree!
A.Russell is offline   Reply With Quote
Old 01-22-2006, 10:17 AM   #5
jcd
New Member
 
Join Date: Jan 2006
Location: czech republic
Posts: 6
Angry Re: OpenAL Lesson 6: Advanced Loading & Error Handles

in this function...

Code:
void killALData() { for (vector<ALuint>::iterator iter = Sources.begin(); iter != Sources.end(); ++iter) alDeleteSources (1, iter); for (vector<ALuint>::iterator iter = Buffers.begin(); iter != Buffers.end(); ++iter) alDeleteBuffers (1, iter); Sources.clear(); Buffers.clear(); }

my compiler (GCC under windows, mingw) says:
Quote:
cannot convert `__gnu_cxx::__normal_iterator<ALuint*, std::vector<ALuint, std::allocator<ALuint> > >' to `const ALuint*' for argument `2' to `void alDeleteSources(ALsizei, const ALuint*)'
jcd is offline   Reply With Quote
Old 01-22-2006, 10:21 AM   #6
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
Default Re: OpenAL Lesson 6: Advanced Loading & Error Handles

You just need to write iter as &(*iter) in the calls to alDeleteSources and alDeleteBuffers.
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is offline   Reply With Quote
Old 01-22-2006, 10:26 AM   #7
jcd
New Member
 
Join Date: Jan 2006
Location: czech republic
Posts: 6
Default Re: OpenAL Lesson 6: Advanced Loading & Error Handles

Thank you so much... Everything is now O.K.
jcd is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 05:42 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.