#### Archived

This topic is now archived and is closed to further replies.

# DirectAudio and DevC++

## Recommended Posts

Hi, Has anyone had any luck running code in DevC++ using DirectAudio? Im getting the following error in DevC++: C:/Program Files/Dev-Cpp/include/dls1.h:264: changes meaning of WLOOP'' from  typedef struct _rloop WLOOP'' I tried the same code on my mates PC using MSVC and it worked fine. It looks like theres a problem in the header file but im sure its prolly something else. Anyone experienced this? All Im doing is including the dmusicc.h and dmusici.h header files! Thanks, Harley. BreakoutX

##### Share on other sites
I got the same problem using Dev-C++.
The problem is that the structure is declared in both dmusicc.h and dls1.h. I don''t have the fix with me but if you rename one declaration or mabye use #ifdef that should work.

##### Share on other sites
Thanks mate. I had gone to OpenAL. Its pretty good although took a while to get used to its syntax with all of the "al" prefixes and the ALblahblah data types, but its very simple to use.

Just so Im not changing the wrong thing, I changed the WLOOP[1] variable in the DMUS_REGION struct in dmdls.h to WLOOPS[1]. Is this what you meant? Things are working now, I can play a sound at least but I would have thought this would have stuffed things up later on.

Thanks again.

Harley

BreakoutX

##### Share on other sites
Weakling! Problems are not here to fear, but to face.

.lick

##### Share on other sites
Who said anything about fear? The way i look at it, now I understand another API (good thing) other than DX. I was simply just after some guidance and now I understand what I had to do I''m continuing using DirectMusic, just needed a nudge in the right direction. Everyones a winner!

h

• ### Forum Statistics

• Total Topics
628303
• Total Posts
2981923

• 10
• 11
• 11
• 10
• 10