Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Audio Class Rewrite Request

As ccoa has said at least once a month, there are people working on this somewhere.

I assume it is SephirothSpawn and Selwyn, at least.

When doing so, I was wondering if you could include Stereo and Surround Sound manipulation. Being able to change the volume of a song/sound effect in each speaker independently is something I've wanted for a long time. I don't really care enough to rewrite the entire Audio class myself just to do it though.
 
I have started on mine (thanks to ccoa for her script which got me going).

I will be working on it tonight. I will post what is done tonight before bed. I have the audio playing and everything, but like ccoa, I can't get the volume control working right. I believe the setaudio function is only for video files, but knowing so very little about API, I cannot say for sure.

Here's the API refrence I have done so far, on the API, functions, etc.

Code:
  #--------------------------------------------------------------------------
  # ** API Setup
  #
  #   ~ http://msdn2.microsoft.com/de-de/library/ms709492.aspx
  #  
  #   Library  : winmm
  #   Function : mciSendString
  #   Params   : lpszCommand, lpszReturnString, cchReturn, hwndCallback
  #   Returns  : 0 - Successful, 1 - Error
  #
  # ** lpszCommand
  #
  #   ~ http://msdn2.microsoft.com/de-de/library/ms712587.aspx
  #
  #   aliasname must match when using after open function
  #   
  #   open     : http://msdn2.microsoft.com/de-de/library/ms712776.aspx
  #    ~ "open directory/filename alias aliasname"
  #
  #   close    : http://msdn2.microsoft.com/de-de/library/ms707312.aspx
  #    ~ "close aliasname"
  #
  #   play     : http://msdn2.microsoft.com/de-de/library/ms712842.aspx
  #    ~ "play aliasname from position"
  #
  #   pause    : http://msdn2.microsoft.com/de-de/library/ms712828.aspx
  #    ~ "pause aliasname"
  #
  #   resume   : http://msdn2.microsoft.com/de-de/library/ms713233.aspx
  #    ~ "resume aliasname"
  #
  #   stop     : http://msdn2.microsoft.com/de-de/library/ms713280.aspx
  #    ~ "stop aliasname"
  #
  #   setaudio : http://msdn2.microsoft.com/de-de/library/ms713256.aspx
  #    ~ "setaudio aliasname volume to value"
  #    ~ "setaudio aliasname output treble value"
  #    ~ "setaudio aliasname output bass value"
  #
  #   status   : http://msdn2.microsoft.com/de-de/library/ms713277.aspx
  #    ~ "status aliasname mode", variable, 255, 0
  #--------------------------------------------------------------------------
 
Hehe. I am doing it for a learning experience. This is the first thing I have done with API, so I need to do it. After this, I am planning on a movie player. How fun!

EDIT: Well poo. In the process of straightening up the code and figuring out the volume control, I screwed something up along the way and don't have time to fix it. I will post what I have done soon. Sorry.
 
Any further news on the Audio class rewrite, Seph/Trick? (Which one are you at the moment :D ?)
I'd seriously like this; cause then I'd be able to distribute a version of my game with uber small WMAs that isn't the sonic equivalent of dogmeat. (They sound perfect under Media Player Classic, but when the software synth gets hold of them, a crackling, warping, malformed mess results...)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top