mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
Remove redundant constants
This commit is contained in:
1 parent
3c4566717c
commit
f7ff2e2d20
7 files changed
+38
-38
No files matched your search
@@ -819,7 +819,7 @@ int Atrac2::SetData(const Track &track, u32 bufferAddr, u32 readSize, u32 buffer
|
||||
|
||||
SceAtracIdInfo &info = context_->info;
|
||||
|
||||
if (track.codecType != PSP_MODE_AT_3 && track.codecType != PSP_MODE_AT_3_PLUS) {
|
||||
if (track.codecType != PSP_CODEC_AT3 && track.codecType != PSP_CODEC_AT3PLUS) {
|
||||
// Shouldn't have gotten here, Analyze() checks this.
|
||||
ERROR_LOG(Log::ME, "unexpected codec type %d in set data", track.codecType);
|
||||
return SCE_ERROR_ATRAC_UNKNOWN_FORMAT;
|
||||
@@ -832,7 +832,7 @@ int Atrac2::SetData(const Track &track, u32 bufferAddr, u32 readSize, u32 buffer
|
||||
if (readSize >= track.fileSize) {
|
||||
INFO_LOG(Log::ME, "The full file was set directly - we can dump it.");
|
||||
char filename[512];
|
||||
snprintf(filename, sizeof(filename), "%s_%d%s", track.codecType == PSP_MODE_AT_3 ? "at3" : "at3plus", track.endSample, track.channels == 1 ? "_mono" : "");
|
||||
snprintf(filename, sizeof(filename), "%s_%d%s", track.codecType == PSP_CODEC_AT3 ? "at3" : "at3plus", track.endSample, track.channels == 1 ? "_mono" : "");
|
||||
DumpFileIfEnabled(Memory::GetPointer(bufferAddr), readSize, filename, DumpFileType::Atrac3);
|
||||
}
|
||||
|
||||
@@ -1004,7 +1004,7 @@ int Atrac2::Bitrate() const {
|
||||
const SceAtracIdInfo &info = context_->info;
|
||||
|
||||
int bitrate = (info.sampleSize * 352800) / 1000;
|
||||
if (info.codec == PSP_MODE_AT_3_PLUS)
|
||||
if (info.codec == PSP_CODEC_AT3PLUS)
|
||||
bitrate = ((bitrate >> 11) + 8) & 0xFFFFFFF0;
|
||||
else
|
||||
bitrate = (bitrate + 511) >> 10;
|
||||
|
||||
Reference in new issue
Block a user