| 1 | = Audio = |
| 2 | |
| 3 | == Introduction == |
| 4 | |
| 5 | HelenOS supports audio devices. Getting basic audio output is very easy. We'll explain all the necessary steps here. |
| 6 | |
| 7 | == Audio on Hardware == |
| 8 | |
| 9 | HelenOS supports Intel High Definition Audio thus it should work with the on-board audio device of any not-too-ancient PC. |
| 10 | |
| 11 | == Audio in Qemu == |
| 12 | |
| 13 | In Qemu HelenOS can support audio via Intel High Definition Audio device. Just use {{{ew.py}}} and you will get it automatically. Alternatively, run Qemu with the options |
| 14 | |
| 15 | {{{ |
| 16 | -device intel-hda -device hda-duplex |
| 17 | }}} |
| 18 | |
| 19 | Don't use the sb16 device - current versions of Qemu have broken sb16 support. |
| 20 | |
| 21 | == Say hello == |
| 22 | |
| 23 | To test sound type into the terminal: |
| 24 | {{{ |
| 25 | # wavplay demo.wav |
| 26 | }}} |
| 27 | |
| 28 | == Amiga-style modules == |
| 29 | |
| 30 | The {{{modplay}}} command can play Amiga-style modules (.mod and .xm). Find one and get it onto your HelenOS system (e.g. on a USB stick or build it into the initrd). Play it using the command: |
| 31 | |
| 32 | {{{ |
| 33 | # modplay <my_module.mod> |
| 34 | }}} |