mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Split Audio Dumps on Sample Rate Changes
This commit is contained in:
parent
cbd6fda5e3
commit
ca2eaac704
4 changed files with 42 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue