diff options
| author | Chris Burgener <christhecoolist@gmail.com> | 2016-06-28 11:52:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-28 11:52:40 -0400 |
| commit | 41335752e57fbf18ec2339a84ce5080b2c5fe654 (patch) | |
| tree | 094b9f96af0abcdf67fcf929b6292e2b49d09c63 /Source/Core/AudioCommon/WaveFile.h | |
| parent | 28a3691e70ba2a1b37dbb58b22dfd35336c99a80 (diff) | |
| parent | ca2eaac704ba223c5d38bd0e2511e892d7db302a (diff) | |
Merge pull request #3891 from RisingFog/split_audio_dump_sample_rate
Split Audio Dumps on Sample Rate Changes
Diffstat (limited to 'Source/Core/AudioCommon/WaveFile.h')
| -rw-r--r-- | Source/Core/AudioCommon/WaveFile.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/WaveFile.h b/Source/Core/AudioCommon/WaveFile.h index be0c8b7c5f..761f205722 100644 --- a/Source/Core/AudioCommon/WaveFile.h +++ b/Source/Core/AudioCommon/WaveFile.h @@ -30,8 +30,8 @@ public: void Stop(); void SetSkipSilence(bool skip) { skip_silence = skip; } - void AddStereoSamples(const short* sample_data, u32 count); - void AddStereoSamplesBE(const short* sample_data, u32 count); // big endian + void AddStereoSamples(const short* sample_data, u32 count, int sample_rate); + void AddStereoSamplesBE(const short* sample_data, u32 count, int sample_rate); // big endian u32 GetAudioSize() const { return audio_size; } private: static constexpr size_t BUFFER_SIZE = 32 * 1024; @@ -42,4 +42,8 @@ private: std::array<short, BUFFER_SIZE> conv_buffer{}; void Write(u32 value); void Write4(const char* ptr); + void CheckSampleRate(int sample_rate); + std::string basename; + int current_sample_rate; + int file_index = 0; }; |
