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