Fix zero luma corner case
[lsnes.git] / src / plat-dummy / sound.cpp
blobd1db7716e084dd3338276eceb757f7933c4ddc56
1 #include "core/command.hpp"
2 #include "core/window.hpp"
4 #include <cstdlib>
5 #include <iostream>
7 void sound_init() {}
8 void sound_quit() {}
9 void window::_sound_enable(bool enable) throw() {}
10 void window::play_audio_sample(uint16_t left, uint16_t right) throw() {}
12 bool window::sound_initialized()
14 return true;
17 void window::_set_sound_device(const std::string& dev)
19 if(dev != "null")
20 throw std::runtime_error("Bad sound device '" + dev + "'");
23 std::string window::get_current_sound_device()
25 return "null";
28 std::map<std::string, std::string> window::get_sound_devices()
30 std::map<std::string, std::string> ret;
31 ret["null"] = "NULL sound output";
32 return ret;
35 const char* sound_plugin_name = "Dummy sound plugin";