File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ ALLEGRO_SAMPLE *_al_load_mp3_f(ALLEGRO_FILE *f)
60
60
}
61
61
62
62
// Allocate buffer and read all the file
63
- uint8_t * mp3data = (uint8_t * )al_malloc (fsize );
64
- size_t readbytes = al_fread (f , mp3data , fsize );
65
- if (readbytes != fsize ) {
63
+ uint8_t * mp3data = (uint8_t * )al_malloc (filesize );
64
+ size_t readbytes = al_fread (f , mp3data , filesize );
65
+ if (readbytes != ( size_t ) filesize ) {
66
66
ALLEGRO_WARN ("Failed to read file into memory.\n" );
67
67
al_free (mp3data );
68
68
return NULL ;
@@ -100,6 +100,9 @@ ALLEGRO_AUDIO_STREAM *_al_load_mp3_audio_stream(const char *filename, size_t buf
100
100
101
101
ALLEGRO_AUDIO_STREAM * _al_load_mp3_audio_stream_f (ALLEGRO_FILE * f , size_t buffer_count , unsigned int samples )
102
102
{
103
+ (void )f ;
104
+ (void )buffer_count ;
105
+ (void )samples ;
103
106
mp3_initminimp3 (); // Make sure library is initialised
104
107
return NULL ;
105
108
}
You can’t perform that action at this time.
0 commit comments