mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			1,023 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			1,023 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
 | |
| typedef struct _snd_output snd_output_t;
 | |
| 
 | |
| enum _snd_output_type {
 | |
| 	SND_OUTPUT_STDIO,
 | |
| 	SND_OUTPUT_BUFFER,
 | |
| };
 | |
| 
 | |
| #ifdef SND_ENUM_TYPECHECK
 | |
| typedef struct __snd_output_type *snd_output_type_t;
 | |
| #else
 | |
| typedef enum _snd_output_type snd_output_type_t;
 | |
| #endif
 | |
| 
 | |
| #define SND_OUTPUT_STDIO ((snd_output_type_t) SND_OUTPUT_STDIO)
 | |
| #define SND_OUTPUT_BUFFER ((snd_output_type_t) SND_OUTPUT_BUFFER)
 | |
| 
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| int snd_output_stdio_open(snd_output_t **outputp, const char *file);
 | |
| int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int close);
 | |
| int snd_output_buffer_open(snd_output_t **outputp);
 | |
| size_t snd_output_buffer_string(snd_output_t *output, char **buf);
 | |
| int snd_output_close(snd_output_t *output);
 | |
| int snd_output_printf(snd_output_t *output, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
 | |
| int snd_output_puts(snd_output_t *output, const char *str);
 | |
| int snd_output_putc(snd_output_t *output, int c);
 | |
| int snd_output_flush(snd_output_t *output);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | 
