Skip to content

Great tool! exept I cant use it... #3

Description

@thewisestcrab

I have tried including a bunch of files and adding flags to the g++ compile command but when compiling it on linux I get an error. In addition, it doesn't seem to be beeping at all when executing the compiled windows program with wine, although maybe that is just a wine thing.

the error messages I get are:

beep/beep/beep.h: In function ‘int beep(int, int)’:
beep/beep/beep.h:40:9: error: ‘snd_pcm_open’ was not declared in this scope
   40 |     if (snd_pcm_open(&pcm, "default", 0, 0)) {
      |         ^~~~~~~~~~~~
beep/beep/beep.h:43:5: error: ‘snd_pcm_set_params’ was not declared in this scope
   43 |     snd_pcm_set_params(pcm, 1, 3, 1, 8000, 1, 20000);
      |     ^~~~~~~~~~~~~~~~~~
beep/beep/beep.h:49:5: error: ‘snd_pcm_prepare’ was not declared in this scope
   49 |     snd_pcm_prepare(pcm);
      |     ^~~~~~~~~~~~~~~
beep/beep/beep.h:53:13: error: ‘snd_pcm_writei’ was not declared in this scope
   53 |     int r = snd_pcm_writei(pcm, buf, sizeof(buf));
      |             ^~~~~~~~~~~~~~
beep/beep/beep.h:55:7: error: ‘snd_pcm_recover’ was not declared in this scope
   55 |       snd_pcm_recover(pcm, r, 0);
      |       ^~~~~~~~~~~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions