Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
OpenAL EAX2 v1.0 complete. #256450
03/16/09 20:55
03/16/09 20:55
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Happy Birthday Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Hi all, Well I am very proud of myself, Why?

I have bugger all knowledge of programming but I've managed after approx two months to get an EAX2 plugin for lite-c to work, "very basic at the moment".
For those who don't know what EAX2 is here is a brief rundown.

Creative®’s Environmental Audio Extensions (EAX™) add 3D reverberation
capabilities with occlusion and obstruction effects to the DirectSound™
component of DirectX or to OpenAL.

EAX is an open standard that takes advantage of any hardware-accelerated card
(such as Sound Blaster® Live!) that provides the necessary reverberation and
occlusion/obstruction processing. In either DirectSound or OpenAL, when your
application first asks for EAXsupport, the card’s audio driver is queried to see if
EAX support is available. If EAX is not available, the application will still work
properly, but will not have EAX effects.
As an open standard, EAX works not only with Creative’s cards, but also with
any manufacturer’s cards that care to take advantage of the EAX property sets.

Consider a sword clanked in a small padded cell. It should sound much different
than the same sword clanked in a large cathedral, and it’s reverberation that tells
the story. Or, consider a scream coming from the next room. The occluded
(muffled) quality of the scream tells you there’s a wall in between you and the
screamer. Without environmental audio effects, sound sources are naked and lack
warmth—the aural equivalent of a visual world without shadows, haze, and
independent light sources.

And the best part.
OpenAL re-distributable license
Creative Labs, Inc. is providing you with this OpenAL32.dll installer and other OpenAL files ("Software"). You may use and freely integrate with your software applications and distribute such throughout the world at no cost or further obligation to Creative.

If any person wishes to help me by answering any questions no matter how stupid they may seem, Please PM me. Must also know how to program the plugin

This plugin will benefit all users but as it stands at the moment it is only very basic. I hope to add more options over the next few months.

So please test it and ley me know how it goes.

Here is the link EAX2 Demo

I am using an old fire demo as an example.
There is also a dummy.wav,eax.dll and the GS_EAX2.DLL wrapper in the main program folder. DO NOT delete these.

The dummy.wav file is needed to initilize the wrapper.

There is no readme file as yet, but if you have a look at the main.c code it is self explainatory.
Oh yeah, It won't or shouldn't affect any background music playing via the media_play function.
Have fun.





Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: EAX2 is now in the Beta stage [Re: Nidhogg] #256524
03/17/09 10:41
03/17/09 10:41
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Wow! Thanks!

Re: EAX2 is now in the Beta stage [Re: Cowabanga] #256605
03/17/09 18:14
03/17/09 18:14
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
nice work, and very good stuff you have made smile


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: EAX2 is now in the Beta stage [Re: Jaxas] #256618
03/17/09 19:20
03/17/09 19:20
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Awesome stuff!
One question though:
Is it possible (with EAX generally) to adjust the environment per sound?

Re: EAX2 is now in the Beta stage [Re: Xarthor] #256624
03/17/09 19:42
03/17/09 19:42
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Happy Birthday Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Thanks for the comments I really appreciate them.
Xarthor:- Yes it is afaik, I just got to figure out how.

Here is another snippet from the EAX developer guide.
----------------------------------------------------
Secondary Sound Buffers (Sound Sources)
----------------------------------------------------
DirectSound supports as many secondary sound buffers as the host system is able
to accommodate in computer RAM or sound-card RAM most cases this is 32 sound buffers. Each of these buffers
represents a sound source. Each holds a waveform table created by the
application for playback and plays back the waveform table as directed by the
application. When DirectSound is set to simulate a 3D environment, the
application can assign a secondary buffer’s position in the 3D aural world as well
as its velocity (if it’s in motion), its sound cones (for directional sound projection),
its minimum-maximum distances from the listener, and so on.

-----------------------------
Objects and Interfaces
------------------------------
Because DirectSound is object oriented, it creates each sound buffer—the primary
and any secondary buffers—as objects. To provide application control for each
sound object, DirectSound creates a standard interface (also an object) for each
sound object and ties the interface to the sound object. An application controls
each sound buffer through the buffer’s interface by calling member functions on
the interface. An application can, for example, call the member function
SetVolume on a buffer’s standard interface to set the buffer’s playback volume.

As I stated before, please be patient with me as I don't know much about programming. I'm doing it as trial and error at the moment lol.



Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: EAX2 is now in the Beta stage [Re: Nidhogg] #257023
03/20/09 03:59
03/20/09 03:59
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Happy Birthday Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Version 1.0 is now complete. Changes are as follows -

1) A better DEMO LEVEL with statements to where AEX2 is been used.
The three main files are - main.c, EAX_Presets.h and player.c

2) Changed from eax.dll to OpenAL sdk, Better handling and faster execution.
Option to develop into a fully fledged sound engine for GS. "Providing
if I get enough encouragement wink

3) Package contains the re-distribution OpenAL software and txt files,
PLEASE - It is important you read them FIRST before running the demo.

4) The BESTIST thing, It now has whopping 113 Enviromental Effects.
There are the 27 DEFAULT presests, 9 CASTLE presets, 9 FACTORY presets,
9 ICE PALLACE presets, 8 SPACE STATION presets, 9 WOOD GALLEON presets,
9 SPORTS presets, 5 PREFAB presets, 6 DOME & PIPE presets,
5 OUTDOOR presets, 3 MOOD presets, 8 DRIVING SIMULATION presets,
6 CITY presets and 3 MISC ROOMS presets.

Well guys here is the link again EAX2 Demo

So try it out and have fun. But please give me feedback.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: EAX2 is now in the Beta stage [Re: Xarthor] #257025
03/20/09 04:14
03/20/09 04:14
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Happy Birthday Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Originally Posted By: Xarthor
Awesome stuff!
One question though:
Is it possible (with EAX generally) to adjust the environment per sound?

Just need to correct myself with this one. blush

After further reading and understanding of how EAX works the proper answer I think - NO!. The reason is that with EAX you are changing your enviroment/surroundings and not the source. You can however manipulate the
sound source settings but the EAX Enviroment will still be the same, Just the
outcome of the sound source will have changed.

eg: If I changed the sound source to have a higher pitch and volume quiter,
and I set the Enviroment simulate an echoing tunnel the end result be
that the sound source would be of higher pitch and quiter but would still
sound like a tunnel.

This is because the EAX sets up the listener and not the source.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: EAX2 is now in the Beta stage [Re: Nidhogg] #257067
03/20/09 10:53
03/20/09 10:53
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
hell, i just saw this thread! i guess this is exactly what i wa looking for years laugh i'll test immediately when i am at home. .hopefully it is what i am thinking that it is

Re: EAX2 is now in the Beta stage [Re: ello] #257338
03/22/09 18:50
03/22/09 18:50

F
Fear411
Unregistered
Fear411
Unregistered
F



thats awesome. Is it free for use?

Re: EAX2 is now in the Beta stage [Re: ] #257535
03/23/09 20:10
03/23/09 20:10
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
heya, i just tried it out and it seems not to work here on my SigmaTel C-Major Audiocard.. neither your demo nor after i added it to my project.. any idea? hope to get it to work


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1