|
Cannot load sample. |
arch674
Member #16,525
August 2016
|
Hey, i have a problem when i try to load sample, I'm doing exactly like I should, after al_load_sample function uses, my sample pointer is null... |
Edgar Reynaldo
Major Reynaldo
May 2007
|
There are several possible causes for al_load_sample to fail. 1. You didn't initialize allegro, the audio or the acodec addons. 2. You didn't build support for your particular sound file type into allegro. 3. Your path or your current working directory is wrong. 4. Your sound file is a type not recognized by Allegro. Try saving it in a different format, or re-saving it with an audio editor. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
arch674
Member #16,525
August 2016
|
Hey, thanks for quick response. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Okay. Your options are : 1. Update Allegro. Latest version is 5.2.1. Your problem may have been fixed. There are NUGET packages for MSVC now. 2. Try a different .wav file or an .ogg file and see if others work. 3. Try re-saving your .wav file. Post your code, and post your .wav file as an attachment if it is not too large (>10 MB). My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
arch674
Member #16,525
August 2016
|
If u want to run it, i've added my stickman too. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Okay. I have binaries of 5.2.0 and ex_audio_simple won't play it. Says it failed to load. VLC Media Player can play it though, and here's what it says about the media : Try re-saving it in your favorite audio editor. The codec must not be one recognized by Allegro, or maybe there is a bug. Don't know. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
arch674
Member #16,525
August 2016
|
OK, thank you for help. |
|