openbsd-ports/audio/hydrogen/patches/patch-gui_src_main_cpp
jakemsr 4d99813bba -update to hydrogen-0.9.4: bugfixes, qt3->qt4, code cleanup & file renaming
-add sndio audio and midi support, drop OSS audio support
- take maintainership
maintainer change suggested by grange@ (former maintainer), ok ratchov@
2010-01-11 05:11:32 +00:00

23 lines
1018 B
Plaintext

$OpenBSD: patch-gui_src_main_cpp,v 1.1 2010/01/11 05:11:32 jakemsr Exp $
--- gui/src/main.cpp.orig Fri Jan 1 21:17:50 2010
+++ gui/src/main.cpp Fri Jan 1 21:22:45 2010
@@ -219,6 +219,9 @@ int main(int argc, char *argv[])
if (sSelectedDriver == "auto") {
pPref->m_sAudioDriver = "Auto";
}
+ else if (sSelectedDriver == "sndio") {
+ pPref->m_sAudioDriver = "SndioAudio";
+ }
else if (sSelectedDriver == "jack") {
pPref->m_sAudioDriver = "Jack";
}
@@ -380,7 +383,7 @@ void showInfo()
void showUsage()
{
std::cout << "Usage: hydrogen [-v] [-h] -s file" << std::endl;
- std::cout << " -d, --driver AUDIODRIVER - Use the selected audio driver (jack, alsa, oss)" << std::endl;
+ std::cout << " -d, --driver AUDIODRIVER - Use the selected audio driver (jack, alsa, oss, sndio)" << std::endl;
std::cout << " -s, --song FILE - Load a song (*.h2song) at startup" << std::endl;
#ifdef LASH_SUPPORT
std::cout << " --lash-no-start-server - If LASH server not running, don't start" << endl