diff options
| author | iimarckus <iimarckus@gmail.com> | 2013-10-13 23:35:43 -0700 |
|---|---|---|
| committer | iimarckus <iimarckus@gmail.com> | 2013-10-13 23:35:43 -0700 |
| commit | ad402f12435ab661aa9b745a79d419fcae9340fc (patch) | |
| tree | 5a410d83d4180cb4179ac03b3ccd00bd1a89de1c /music/pokeredmusicdisasm/Volume.cpp | |
| parent | Fix CheckIfInOutsideMap comments. (diff) | |
| parent | Add song alternate start labels (diff) | |
| download | pokeyellow-ad402f12435ab661aa9b745a79d419fcae9340fc.tar.gz pokeyellow-ad402f12435ab661aa9b745a79d419fcae9340fc.tar.xz pokeyellow-ad402f12435ab661aa9b745a79d419fcae9340fc.zip | |
Merge pull request #11 from dannye/music
Music
Diffstat (limited to 'music/pokeredmusicdisasm/Volume.cpp')
| -rw-r--r-- | music/pokeredmusicdisasm/Volume.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/music/pokeredmusicdisasm/Volume.cpp b/music/pokeredmusicdisasm/Volume.cpp deleted file mode 100644 index a0c2d192..00000000 --- a/music/pokeredmusicdisasm/Volume.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include <sstream>
-#include "Volume.h"
-using namespace std;
-
-Volume::Volume()
-{
- volume = 0;
-}
-
-Volume::Volume(unsigned char* byte) // Parse Immidiately
-{
- Parse(byte);
-}
-
-Volume::Volume(unsigned char volume, bool) // Set value
-{
- SetVolume(volume);
-}
-
-unsigned char Volume::GetVolume()
-{
- return volume;
-}
-
-void Volume::SetVolume(unsigned char value)
-{
- volume = value;
-}
-
-bool Volume::IsValid(unsigned char* byte)
-{
- if(byte[0] == 0xF0)
- {
- error = false;
- return true;
- }
- else
- {
- error = true;
- return false;
- }
-}
-
-string Volume::GenAsm()
-{
- string tmpRet = AbstractData::GenAsm();
- if(tmpRet != "") return tmpRet;
-
- stringstream tmpAsmOut;
- tmpAsmOut << "mus_volume" << " " << (short)volume;
- return tmpAsmOut.str();
-}
-
-bool Volume::Parse(unsigned char* byte)
-{
- // If it's not a Note, don't even bother parsing
- if(!AbstractData::Parse(byte)) return false;
-
- volume = byte[1];
- return true;
-}
-
-unsigned int Volume::Arguments()
-{
- // 1 1-byte argument = 1
- return 1;
-}
\ No newline at end of file |
