You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							458 B
						
					
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							458 B
						
					
					
				| #define STB_VORBIS_HEADER_ONLY | |
| #include "stb_vorbis.c" | |
| #include "stb.h" | |
|  | |
| extern void stb_vorbis_dumpmem(void); | |
| 
 | |
| #ifdef VORBIS_TEST | |
| int main(int argc, char **argv) | |
| { | |
|    size_t memlen; | |
|    unsigned char *mem = stb_fileu("c:/x/sketch008.ogg", &memlen); | |
|    int chan, samplerate; | |
|    short *output; | |
|    int samples = stb_vorbis_decode_memory(mem, memlen, &chan, &samplerate, &output); | |
|    stb_filewrite("c:/x/sketch008.raw", output, samples*4); | |
|    return 0; | |
| } | |
| #endif
 | |
| 
 |