![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Apr 2006
Posts: 4
|
Im trying to see if i can produce a working openal console proj from "scratch". I can get the sample code to compile without errors but whenever i simply transfer the code to a blank project i can not produce any sounds. I recieve two warnings about the depricated alut functions but that is it. Would someone be kind enough to look at the code and tell me if i have done anything wrong?
Code:
|
|
|
|
|
|
#2 |
|
DevMaster Staff
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
|
When you transfer the code to a blank project, are you setting it to link with the OpenAL libraries? Also, is "smile.wav" in the new project directory?
___________________________________________
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. |
|
|
|
|
|
#3 | |
|
New Member
Join Date: Apr 2006
Posts: 4
|
Quote:
I believe i have set it to link to the openal lib otherwise i would get linker errors right? I have "alut.lib OpenAL32.lib" listed in the additional dependencies spot for the linker settings. and smile.wav is in the project directory (with the main.cpp file) |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2006
Location: Australia
Posts: 1
|
If you're using windows check any openal dlls are accessable (in the path or the same directory as the program)
|
|
|
|
|
|
#5 | |
|
New Member
Join Date: Apr 2006
Posts: 4
|
Quote:
alut.dll is in the directory but i dont have any openal dll files. also the program doesnt run without the alut.dll file so does that mean alut.dll is the only one it needs? |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2006
Posts: 4
|
OK i managed to get sound to work. I used a different OpenAL32.dll and that seemed to fix the problem.
Thanks for trying guys ![]() |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|