Annotation of nono/host/sounddriver_sndio.h, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2025 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // サウンドの OpenBSD sndio ドライバ
                      9: //
                     10: 
                     11: #pragma once
                     12: 
                     13: #include "sounddriver.h"
                     14: #include <sndio.h>
                     15: 
                     16: class SoundDriverSndIO : public SoundDriver
                     17: {
                     18:        using inherited = SoundDriver;
                     19:  public:
                     20:        explicit SoundDriverSndIO(HostDevice *hostdev_);
                     21:        ~SoundDriverSndIO() 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:        sio_hdl *sio {};
                     33: };

unix.superglobalmegacorp.com

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