File:  [Isaki's NoNo m68k/m88k emulator] / nono / host / sounddriver_alsa.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:06:02 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v027, HEAD
nono 1.7.0

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

//
// サウンドの ALSA ドライバ
//

#pragma once

#include "sounddriver.h"
#include <alsa/asoundlib.h>

class SoundDriverALSA : public SoundDriver
{
	using inherited = SoundDriver;
 public:
	explicit SoundDriverALSA(HostDevice *hostdev_);
	~SoundDriverALSA() override;

	bool InitDriver(bool startup = true) override;

	void Write(const int16 *) override;

	void MonitorScreenMD(TextScreen&, int y) override;

 private:
	void Close();

	snd_pcm_t *pcm {};

	std::string device {};
};

unix.superglobalmegacorp.com

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