#include <ShoeBox.h>
Public Member Functions | |
| ShoeBox () | |
| ~ShoeBox () | |
| void | setSourceLocation (float x, float y, float z) |
| void | setListenerLocation (float x, float y, float z) |
| void | setRoomSize (float x, float y, float z) |
| CPoint | roomSize () |
| CPoint | source () |
| CPoint | listener () |
| void | setWallMaterialsDamp (int dampX, int dampY, int dampZ) |
| void | setDuration (int ms) |
| void | getReflections (float *ref, float *gains, float *angles, int num) |
| void | calculateReflections () |
| void | findNumReflectionsFromTime () |
Private Member Functions | |
| void | shellSort () |
| bool | checkPositionValues () |
Private Attributes | |
| CPoint | mRoomSize |
| CPoint | mSource |
| CPoint | mListenerPosition |
| float | mDampX |
| float | mDampY |
| float | mDampZ |
| float * | mReflectionsArray |
| float * | mGainsArray |
| float * | mAnglesArray |
| int | mDuration |
| int | mNumReflections |
| int | mMaxBouncesX |
| int | mMaxBouncesY |
| int | mMaxBouncesZ |
| ShoeBox::ShoeBox | ( | ) |
References kBrockCoefficient, mDampX, mDampY, mDampZ, and mDuration.
| ShoeBox::~ShoeBox | ( | ) |
| void ShoeBox::setSourceLocation | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
References checkPositionValues(), csl::logMsg(), mSource, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::setListenerLocation | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
References checkPositionValues(), mListenerPosition, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::setRoomSize | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
References checkPositionValues(), mRoomSize, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| CPoint csl::ShoeBox::listener | ( | ) | [inline] |
References mListenerPosition.
| void ShoeBox::setWallMaterialsDamp | ( | int | dampX, | |
| int | dampY, | |||
| int | dampZ | |||
| ) |
| void ShoeBox::setDuration | ( | int | ms | ) |
References mDuration.
| void ShoeBox::getReflections | ( | float * | ref, | |
| float * | gains, | |||
| float * | angles, | |||
| int | num | |||
| ) |
References mAnglesArray, mGainsArray, and mReflectionsArray.
| void ShoeBox::calculateReflections | ( | ) |
References findNumReflectionsFromTime(), testkiss::j, csl::logMsg(), mAnglesArray, mDampX, mDampY, mDampZ, mGainsArray, mListenerPosition, mMaxBouncesX, mMaxBouncesY, mMaxBouncesZ, mNumReflections, mReflectionsArray, mRoomSize, mSource, shellSort(), SPEED_OF_SOUND, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
| void ShoeBox::findNumReflectionsFromTime | ( | ) |
References csl::logMsg(), mAnglesArray, mDuration, mGainsArray, mMaxBouncesX, mMaxBouncesY, mMaxBouncesZ, mNumReflections, mReflectionsArray, mRoomSize, SPEED_OF_SOUND, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by calculateReflections().
| void ShoeBox::shellSort | ( | ) | [private] |
References testkiss::j, mAnglesArray, mGainsArray, mNumReflections, and mReflectionsArray.
Referenced by calculateReflections().
| bool ShoeBox::checkPositionValues | ( | ) | [private] |
References mListenerPosition, mRoomSize, mSource, csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by setListenerLocation(), setRoomSize(), and setSourceLocation().
CPoint csl::ShoeBox::mRoomSize [private] |
Referenced by calculateReflections(), checkPositionValues(), findNumReflectionsFromTime(), roomSize(), and setRoomSize().
CPoint csl::ShoeBox::mSource [private] |
Referenced by calculateReflections(), checkPositionValues(), setSourceLocation(), and source().
CPoint csl::ShoeBox::mListenerPosition [private] |
Referenced by calculateReflections(), checkPositionValues(), listener(), and setListenerLocation().
float csl::ShoeBox::mDampX [private] |
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
float csl::ShoeBox::mDampY [private] |
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
float csl::ShoeBox::mDampZ [private] |
Referenced by calculateReflections(), setWallMaterialsDamp(), and ShoeBox().
float* csl::ShoeBox::mReflectionsArray [private] |
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
float * csl::ShoeBox::mGainsArray [private] |
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
float * csl::ShoeBox::mAnglesArray [private] |
Referenced by calculateReflections(), findNumReflectionsFromTime(), getReflections(), and shellSort().
int csl::ShoeBox::mDuration [private] |
Referenced by findNumReflectionsFromTime(), setDuration(), and ShoeBox().
int csl::ShoeBox::mNumReflections [private] |
Referenced by calculateReflections(), findNumReflectionsFromTime(), and shellSort().
int csl::ShoeBox::mMaxBouncesX [private] |
Referenced by calculateReflections(), and findNumReflectionsFromTime().
int csl::ShoeBox::mMaxBouncesY [private] |
Referenced by calculateReflections(), and findNumReflectionsFromTime().
int csl::ShoeBox::mMaxBouncesZ [private] |
Referenced by calculateReflections(), and findNumReflectionsFromTime().
1.5.8