mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	aplay: Prefer FileSystem over DeprecatedFile
This commit is contained in:
		
							parent
							
								
									951b77e04d
								
							
						
					
					
						commit
						25d2828ef5
					
				
					 2 changed files with 3 additions and 5 deletions
				
			
		|  | @ -72,7 +72,7 @@ install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/fgrep SYMBOLIC)" | ||||||
| install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)") | install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)") | ||||||
| 
 | 
 | ||||||
| target_link_libraries(abench PRIVATE LibAudio LibFileSystem) | target_link_libraries(abench PRIVATE LibAudio LibFileSystem) | ||||||
| target_link_libraries(aplay PRIVATE LibAudio LibIPC) | target_link_libraries(aplay PRIVATE LibAudio LibFileSystem LibIPC) | ||||||
| target_link_libraries(asctl PRIVATE LibAudio LibIPC) | target_link_libraries(asctl PRIVATE LibAudio LibIPC) | ||||||
| target_link_libraries(bt PRIVATE LibSymbolication) | target_link_libraries(bt PRIVATE LibSymbolication) | ||||||
| target_link_libraries(checksum PRIVATE LibCrypto) | target_link_libraries(checksum PRIVATE LibCrypto) | ||||||
|  |  | ||||||
|  | @ -10,9 +10,9 @@ | ||||||
| #include <LibAudio/Loader.h> | #include <LibAudio/Loader.h> | ||||||
| #include <LibAudio/Resampler.h> | #include <LibAudio/Resampler.h> | ||||||
| #include <LibCore/ArgsParser.h> | #include <LibCore/ArgsParser.h> | ||||||
| #include <LibCore/DeprecatedFile.h> |  | ||||||
| #include <LibCore/EventLoop.h> | #include <LibCore/EventLoop.h> | ||||||
| #include <LibCore/System.h> | #include <LibCore/System.h> | ||||||
|  | #include <LibFileSystem/FileSystem.h> | ||||||
| #include <LibMain/Main.h> | #include <LibMain/Main.h> | ||||||
| #include <math.h> | #include <math.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|  | @ -35,10 +35,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | ||||||
|     args_parser.add_option(show_sample_progress, "Show playback progress in samples", "sample-progress", 's'); |     args_parser.add_option(show_sample_progress, "Show playback progress in samples", "sample-progress", 's'); | ||||||
|     args_parser.parse(arguments); |     args_parser.parse(arguments); | ||||||
| 
 | 
 | ||||||
|     auto absolute_path = Core::DeprecatedFile::absolute_path(path); |  | ||||||
| 
 |  | ||||||
|     TRY(Core::System::unveil("/tmp/session/%sid/portal/audio", "rw")); |     TRY(Core::System::unveil("/tmp/session/%sid/portal/audio", "rw")); | ||||||
|     TRY(Core::System::unveil(absolute_path, "r"sv)); |     TRY(Core::System::unveil(TRY(FileSystem::absolute_path(path)), "r"sv)); | ||||||
|     TRY(Core::System::unveil(nullptr, nullptr)); |     TRY(Core::System::unveil(nullptr, nullptr)); | ||||||
| 
 | 
 | ||||||
|     Core::EventLoop loop; |     Core::EventLoop loop; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ben Wiederhake
						Ben Wiederhake