AudioEngine

All about the core api and animation, input, sound, effect, collision and physics engines.
You can also post here your feature requests.

Moderator: Brume Dev Team

AudioEngine

Postby Gero on Sun Jan 13, 2008 10:02 am

Hi,

I think I have very bad news for you Silmaryls.
The sound class Microsoft.DirectX.AudioVideoPlayback.Audio is not useable without the DX SDK.
The code is really really buggy as hell. That's not your fault, MS did that. [1]
The wave files are ok but the music function should be removed completely.
I found a ogg player code suite for C# that needs DX code to run. Maybe we could implement this? [2]
It's an urgent wish for me.

[1] http://www.codeproject.com/KB/directx/D ... yback.aspx
[2] http://www.codeplex.com/OggVorbisIntero ... mmits.aspx
User avatar
Gero
Brume user
 
Posts: 27
Joined: Thu Dec 06, 2007 10:11 pm

Re: AudioEngine

Postby Gero on Sun Jan 13, 2008 11:25 am

I am working on it already.
I created a new class BrumeSoundOgg.
It has a private BrumeSoundBuffer class and fills it before end has been reached.
The class hooks an Update() event for this where it checks the read and write
positions and decodes the ogg data if necessary. If the sound loops it rewinds the
ogg file and decodes the data again.
Hope this works
User avatar
Gero
Brume user
 
Posts: 27
Joined: Thu Dec 06, 2007 10:11 pm

Re: AudioEngine

Postby Silmaryls on Tue Jan 15, 2008 8:53 pm

These are really bad news indeed.
Tell me if you achieve to make it work.
If not I will have to change the music API to something else.
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Technical discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron