Untitled

Published September 17, 2006
Advertisement
*sigh*

So I've been tinkering around, fixing various things and implementing others. (Entirely basecode stuff, nothing related to either Hiatus or any other project). I fixed the GL_TEXTURE_3D issue for low-end systems, kindof. Now it allocates with GL_TEXTURE_2D if the depth parameter of the atlas allocation call is 1, or if the 3D allocation call fails. Seems to work, but in a texture-demanding situation you might run out of space in the atlas with the 2D texture mode. Which is handled gracefully - a pure-black/alpha (I can't remember which) texture just gets substituted (essentially, my systems 'NULL' texture).

I'm about halfway through an FMOD implementation of the sound system, which is pretty basic -
class AudioAdapter {public:	typedef FSOUND_SAMPLE* SoundType;	typedef FMUSIC_MODULE* MusicType;	SoundType loadSound( const std::string& path );	void freeSound( SoundType sound );	bool playSound( SoundType sound );	void stopAllSound();	MusicType loadMusic( const std::string& path );	void freeMusic( MusicType music );	bool playMusic( MusicType music );	bool isPlaying( MusicType music );	void stopMusic( MusicType music );	void stopAllMusic();};

I mean, that's basically all I want to do with the sound. Sure, there's the whole giant mess of cool things you can do (3D sounds, echos, effects, etc etc) but that's kind of overkill for my purposes, and I'd rather keep the entire system simple.

I'd have to say, FMOD is pretty nice. The documentation that I've found is limited to an API reference, but I've managed to get the stuff to work with only that. That's a sign of a well-designed library, if you ask me.

The problem comes, unfortunately, with the virtual file system. Loading a sample soundtrack (403's Southern Cross) takes 10ish seconds. I think I might be able to cut that in half (I have a feeling there's a redundant copy being made somewhere), but the issue is thus -

The file has to be *entirely* in memory. I can't stream it like a normal audio player would.

So its going to be slow, in any case. I guess I can deal with it, one idea I just had was to code in a splash screen which displays in the application window when it starts up, but before everything is loaded (as opposed to just a blank black window). We'll see, I guess I'm happy that the stuff worked so easily!
Previous Entry Untitled
Next Entry Untitled
0 likes 3 comments

Comments

Mushu
Oh, and if anyone wants to recommend a source for sfx/background music for Hiatus, I'm open for suggestions :3
September 17, 2006 04:14 PM
ajones
Might be a stupid question...

can't you just map the file?
September 22, 2006 05:39 AM
Mushu
I might be working on Linux. Except I'm quite possibly not.

That, and I can't stand win32 stuff. Just a passive hatred which must be adhered to ^_~
September 25, 2006 02:37 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Untitled

5346 views

Untitled

1047 views

Untitled

1189 views

Untitled

1104 views

Untitled

1148 views

Untitled

1434 views

Untitled

1101 views

Untitled

1003 views

Untitled

1009 views

Untitled

1186 views
Advertisement