-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fc3ebe
commit b6bb86a
Showing
4 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,30 @@ | ||
#pragma once | ||
#include "TKernel/TDebug.h" | ||
#include "TKernel/TObject.h" | ||
#include "fmod.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
TOSHI_NAMESPACE_USING | ||
|
||
class ASoundManager | ||
class ASample | ||
{ | ||
|
||
}; | ||
|
||
class ASoundManager : public TObject | ||
{ | ||
DECLARE_DYNAMIC(ASoundManager); | ||
|
||
struct AChannel | ||
{ | ||
|
||
}; | ||
|
||
protected: | ||
inline static ASample** s_aSamples = TNULL; | ||
|
||
public: | ||
TFLOAT GetPitch(TINT a_iChannel) const; | ||
TBOOL GetPaused(TINT a_iChannel) const { return a_iChannel != -1 ? FSOUND_GetPaused(a_iChannel) : TFALSE; } | ||
TFLOAT GetPan(TINT a_iChannel) const { return a_iChannel != -1 ? -1.0f + (FSOUND_GetPan(a_iChannel) / 127.5f) : 0.0f; } | ||
TFLOAT GetSFXVolume() { return 1.0f; }; | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters