|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2025 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // ホストサウンドのドライバ (基本クラス)
9: //
10:
11: #include "sounddriver.h"
12: #include "hostsound.h"
13:
14: // コンストラクタ
15: SoundDriver::SoundDriver(HostDevice *hostdev_, const char *drivername_)
16: : inherited(hostdev_, drivername_)
17: {
18: }
19:
20: // デストラクタ
21: SoundDriver::~SoundDriver()
22: {
23: }
24:
25: bool
26: SoundDriver::InitDriver(bool startup)
27: {
28: if (inherited::InitDriver(startup) == false) {
29: return false;
30: }
31:
32: // 必要なパラメータをコピー。
33: auto hostsnd = dynamic_cast<HostSoundDevice *>(hostdev);
34: freq = hostsnd->freq;
35: blkbytes = hostsnd->bytes_per_blk;
36:
37: return true;
38: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.