mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
- fix for music sample rates >48k. issue #221
This commit is contained in:
parent
e6beda957a
commit
c629021a44
Binary file not shown.
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |
@ -1,6 +1,6 @@
|
||||
|
||||
#define APP_NAME "WiiFlow WFL"
|
||||
#define APP_VERSION "5.4.8"
|
||||
#define APP_VERSION "5.4.9 beta 1"
|
||||
|
||||
#define APP_DATA_DIR "wiiflow"
|
||||
#define APPS_DIR "apps/wiiflow"
|
||||
|
@ -108,7 +108,7 @@ void SoundDecoder::EnableUpsample(void)
|
||||
if( (ResampleBuffer == NULL)
|
||||
&& IsStereo() && Is16Bit()
|
||||
&& SampleRate != 32000
|
||||
&& SampleRate != 48000)
|
||||
&& SampleRate < 48000)
|
||||
{
|
||||
ResampleBuffer = (u8*)memalign(32, SoundBlockSize);
|
||||
ResampleRatio = ( FixedPointScale * SampleRate ) / 48000;
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
virtual int Seek(int pos) { CurPos = pos; return file_fd->seek(CurPos, SEEK_SET); };
|
||||
virtual int Rewind();
|
||||
virtual u8 GetFormat() { return Format; }
|
||||
virtual u16 GetSampleRate() { return SampleRate; }
|
||||
virtual u32 GetSampleRate() { return SampleRate; }
|
||||
virtual void Decode();
|
||||
virtual u32 GetBufferSize() { return SoundBuffer.GetBufferSize(); };
|
||||
virtual u8 * GetBuffer() { return SoundBuffer.GetBuffer(); };
|
||||
@ -94,7 +94,7 @@ protected:
|
||||
bool Decoding;
|
||||
bool ExitRequested;
|
||||
u8 Format;
|
||||
u16 SampleRate;
|
||||
u32 SampleRate;
|
||||
u8 *ResampleBuffer;
|
||||
u32 ResampleRatio;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user