- Online Community Forums » Programming Questions » [A5/OSX] Sound not playing

This thread is locked; no one can reply to it. rss feed Print
[A5/OSX] Sound not playing
Member #856
December 2000

This is a followup of the other thread, 'cause I think I'd be veering from the topic too much at this point. ;)


    if (!al_install_audio()) {
    return -1;


  if (!al_reserve_samples(16)) {
    return -1;


  if (!al_init_acodec_addon()) {
    return -1;


  return 0;

0 is returned, i.e. it sets up correctly. But when I later try to al_play_sample on a sample that I've loaded successfully, it returns 0 and nothing is played.

I don't know why I keep having all these mystifying problems. Bear with me. :P

EDIT: This happens both with .wavs and .oggs, including .wavs from disk.

EDIT2: Turns out this is a PEBKAC error; specifically, the loop argument is not a boolean. Herpaderp.

Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Go to: