mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Split Audio Dumps on Sample Rate Changes
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user