openalbridge/loaders.c
changeset 2213 bd51bbf06033
parent 2212 6b5da1a2765a
child 2214 eacb5b19d587
--- a/openalbridge/loaders.c	Mon Jun 29 23:03:25 2009 +0000
+++ b/openalbridge/loaders.c	Tue Jun 30 12:31:32 2009 +0000
@@ -22,7 +22,7 @@
 extern "C" {
 #endif 
 	
-	int load_WavPcm (const char *filename, ALenum *format, uint8_t** data, ALsizei *bitsize, ALsizei *freq) {
+	int load_WavPcm (const char *filename, ALenum *format, char ** data, ALsizei *bitsize, ALsizei *freq) {
 		WAV_header_t WAVHeader;
 		FILE *wavfile;
 		int t, n = 0;
@@ -75,7 +75,7 @@
 		fprintf(stderr, "Subchunk2Size: %d\n", WAVHeader.Subchunk2Size);
 #endif
 		
-		*data = (uint8_t*) malloc (sizeof(uint8_t) * WAVHeader.Subchunk2Size);
+		*data = (char*) malloc (sizeof(char) * WAVHeader.Subchunk2Size);
 		
 		/*this could be improved*/
 		do {
@@ -124,7 +124,7 @@
 		return AL_TRUE;
 	}
 	
-	int load_OggVorbis (const char *filename, ALenum *format, uint8_t**data, ALsizei *bitsize, ALsizei *freq) {
+	int load_OggVorbis (const char *filename, ALenum *format, char **data, ALsizei *bitsize, ALsizei *freq) {
 		/*implementation inspired from http://www.devmaster.net/forums/showthread.php?t=1153 */
 		FILE			*oggFile;		/*ogg handle*/
 		OggVorbis_File  oggStream;		/*stream handle*/
@@ -161,7 +161,7 @@
 #endif
 		
 		/*allocates enough room for the decoded data*/
-		*data = (uint8_t*) malloc (sizeof(uint8_t) * pcm_length);
+		*data = (char*) malloc (sizeof(char) * pcm_length);
 		
 		/*there *should* not be ogg at 8 bits*/
 		if (vorbisInfo->channels == 1)