wav_player.h 401 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * wav_player.h
  3. *
  4. * Created on: 2022年1月11日
  5. * Author: pengzc
  6. */
  7. #ifndef JNI_VOIP_WAV_PLAYER_H_
  8. #define JNI_VOIP_WAV_PLAYER_H_
  9. #include <string>
  10. namespace voip {
  11. class WAVPlayer {
  12. public:
  13. WAVPlayer();
  14. int Play(const std::string& wav_file);
  15. void Stop();
  16. virtual ~WAVPlayer();
  17. private:
  18. int player_id_ = -1;
  19. };
  20. } /* namespace voip */
  21. #endif /* JNI_VOIP_WAV_PLAYER_H_ */