mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 04:22:07 +00:00 
			
		
		
		
	 fc2301c23c
			
		
	
	
		fc2301c23c
		
	
	
	
	
		
			
			The vorbis comment parsing code is slightly generalized to reuse field-role associations for artists.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, kleines Filmröllchen <filmroellchen@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/ByteBuffer.h>
 | |
| #include <LibAudio/LoaderError.h>
 | |
| #include <LibAudio/Metadata.h>
 | |
| 
 | |
| namespace Audio {
 | |
| 
 | |
| // https://www.xiph.org/vorbis/doc/v-comment.html
 | |
| ErrorOr<Metadata, LoaderError> load_vorbis_comment(ByteBuffer const& vorbis_comment);
 | |
| ErrorOr<void> write_vorbis_comment(Metadata const& metadata, Stream& target);
 | |
| 
 | |
| }
 |