aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-07-13 14:01:48 +0000
committerTorbjörn Andersson2006-07-13 14:01:48 +0000
commit612ba0c2be6dac5a89165bbb4708e6f487c107f4 (patch)
tree5d2a6909ff31c2e363ba56be72dd16ca0a50c8e2
parent21b89308b5595ba05d66cc6d4967a491e36bb585 (diff)
downloadscummvm-rg350-612ba0c2be6dac5a89165bbb4708e6f487c107f4.tar.gz
scummvm-rg350-612ba0c2be6dac5a89165bbb4708e6f487c107f4.tar.bz2
scummvm-rg350-612ba0c2be6dac5a89165bbb4708e6f487c107f4.zip
Some whitespace changes to see if the CIA bot is still silent.
svn-id: r23491
-rw-r--r--sound/mp3.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp
index f2ba7e9b26..ad8c6e5467 100644
--- a/sound/mp3.cpp
+++ b/sound/mp3.cpp
@@ -183,18 +183,18 @@ bool MP3InputStream::init() {
// Check the header, determine if this is a stereo stream
int num;
- switch(_frame.header.mode) {
- case MAD_MODE_SINGLE_CHANNEL:
- case MAD_MODE_DUAL_CHANNEL:
- case MAD_MODE_JOINT_STEREO:
- case MAD_MODE_STEREO:
- num = MAD_NCHANNELS(&_frame.header);
- assert(num == 1 || num == 2);
- _isStereo = (num == 2);
- break;
- default:
- warning("MP3InputStream: Cannot determine number of channels");
- return false;
+ switch (_frame.header.mode) {
+ case MAD_MODE_SINGLE_CHANNEL:
+ case MAD_MODE_DUAL_CHANNEL:
+ case MAD_MODE_JOINT_STEREO:
+ case MAD_MODE_STEREO:
+ num = MAD_NCHANNELS(&_frame.header);
+ assert(num == 1 || num == 2);
+ _isStereo = (num == 2);
+ break;
+ default:
+ warning("MP3InputStream: Cannot determine number of channels");
+ return false;
}
return true;
@@ -208,7 +208,7 @@ void MP3InputStream::refill(bool first) {
#ifdef __SYMBIAN32__
// For symbian we must check that an alternative file pointer is created, see if its open
// If not re-open file and seek to the last read position
- if(_file && !_file->isOpen()) {
+ if (_file && !_file->isOpen()) {
_file->open(_file->name());
_file->seek(_lastReadPosition);
}
@@ -270,7 +270,7 @@ void MP3InputStream::refill(bool first) {
#ifdef __SYMBIAN32__
// For symbian we now store the last read position and then close the file
- if(_file) {
+ if (_file) {
_lastReadPosition = _file->pos();
_file->close();
}
@@ -446,7 +446,7 @@ void MP3TrackInfo::play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int sta
offset = (startFrame * (_mad_header.bitrate / (8 * 25))) / 3;
#ifdef __SYMBIAN32__
// Reopen the file if it is not open yet
- if(!_file->isOpen())
+ if (!_file->isOpen())
_file->open(_file->name());
#endif
_file->seek(offset, SEEK_SET);