audio_buffer.h 626 B

12345678910111213141516171819202122232425
  1. // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/common_types.h"
  5. namespace AudioCore {
  6. struct AudioBuffer {
  7. /// Timestamp this buffer started playing.
  8. u64 start_timestamp;
  9. /// Timestamp this buffer should finish playing.
  10. u64 end_timestamp;
  11. /// Timestamp this buffer completed playing.
  12. s64 played_timestamp;
  13. /// Game memory address for these samples.
  14. VAddr samples;
  15. /// Unique identifier for this buffer.
  16. u64 tag;
  17. /// Size of the samples buffer.
  18. u64 size;
  19. };
  20. } // namespace AudioCore