File:  [Isaki's NoNo m68k/m88k emulator] / nono / host / sounddriver.cpp
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:56 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, HEAD
nono 1.6.0

//
// nono
// Copyright (C) 2025 nono project
// Licensed under nono-license.txt
//

//
// ホストサウンドのドライバ (基本クラス)
//

#include "sounddriver.h"
#include "hostsound.h"

// コンストラクタ
SoundDriver::SoundDriver(HostDevice *hostdev_, const char *drivername_)
	: inherited(hostdev_, drivername_)
{
}

// デストラクタ
SoundDriver::~SoundDriver()
{
}

bool
SoundDriver::InitDriver(bool startup)
{
	if (inherited::InitDriver(startup) == false) {
		return false;
	}

	// 必要なパラメータをコピー。
	auto hostsnd = dynamic_cast<HostSoundDevice *>(hostdev);
	freq = hostsnd->freq;
	blkbytes = hostsnd->bytes_per_blk;

	return true;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.