assert_spec x86 if {[have_include "power_on/qemu"]} { puts "\nAudio_out test running on Qemu is not supported.\n" exit 0 } if {[have_spec linux]} { puts"\nAudio_out test running on Linux is not supported.\n" exit 0 } # select use of 'Audio_in/Audio_out' or 'Record/Play' sessions proc use_record_play_sessions { } { return 1 } create_boot_directory proc build_targets { } { set targets { core init timer drivers/acpi drivers/platform app/pci_decode server/report_rom drivers/audio } if {[use_record_play_sessions]} { lappend targets server/record_play_mixer app/waveform_player \ test/audio_play lib/vfs } else { lappend targets test/audio_out } } build [build_targets] proc audio_driver_config_attr { } { if {[use_record_play_sessions]} { return {report_mixer="yes" record_play="yes"} } else { return {report_mixer="yes"} } } proc record_play_start_nodes { } { if {![use_record_play_sessions]} { return "" } return { } } proc audio_in_out_start_nodes { } { if {[use_record_play_sessions]} { return "" } return { sample.f32 } } install_config { } [record_play_start_nodes] { } [audio_in_out_start_nodes] { } # # Get sample file # if {![file exists bin/sample.f32]} { puts "" puts "The sample file is missing. Please take a look at" puts "repos/dde_bsd/README, create 'sample.f32' and put" puts "the file into './bin'. afterwards" puts "" exit 1 } build_boot_image [list {*}[build_artifacts] sample.f32] run_genode_until forever