|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2025 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // サウンドの ALSA ドライバ
9: //
10:
11: #pragma once
12:
13: #include "sounddriver.h"
14: #include <alsa/asoundlib.h>
15:
16: class SoundDriverALSA : public SoundDriver
17: {
18: using inherited = SoundDriver;
19: public:
20: explicit SoundDriverALSA(HostDevice *hostdev_);
21: ~SoundDriverALSA() override;
22:
23: bool InitDriver(bool startup = true) override;
24:
25: void Write(const int16 *) override;
26:
1.1.1.2 ! root 27: void MonitorScreenMD(TextScreen&, int y) override;
1.1 root 28:
29: private:
30: void Close();
31:
32: snd_pcm_t *pcm {};
33:
34: std::string device {};
35: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.