• Advertisement
Sign in to follow this  
  • entries
    557
  • comments
    1237
  • views
    422156

Untitled

Sign in to follow this  

46 views

Especially for Adam:
Ooh, pretty :)

Yes, I don't have graphics output yet. But the sound is AMAZING. Ok, not amazing, average. Well, mediocre. Good enough for my needs anyway. I have static sounds working nicely now, and my CPUID code is AMAZING. And it works on x64, now that I've discovered the __cpuid() intrinsic.

Random snippet of code for sound and music playback:

// Load and play music at half volume
m_pMusic = EAudioMgr::Get().LoadMusic(L"Data/Acid Dominion.ogg");
m_pMusic->Play(true);
m_pMusic->SetVolume(128);

// Load sound (don't play)
m_pSound = EAudioMgr::Get().LoadSound(L"Data/Test.wav");



DirectSound notifications don't seem to work on my Creative card either, which is quite upsetting, so I'll stick to software buffers. Creating one hardware and one software streaming seems to work, but I bet that's asking for trouble on some cards. It all works now, and only static sounds are allowed into hardware memory, which is nice, since 3D sounds will be static, and they're the ones that matter. One or two streaming sounds won't hurt (famous last words...)

Well, that'll do for today. I was going to do some graphics-y stuff, but I got absorbed with my CPUID code, which was as pointless as it was fun. Everyone knows that a good game engine needs to know how much level 2 cache the CPU has...
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement