~richardson183/ndsmusicplayer/trunk

« back to all changes in this revision

Viewing changes to oss.c

  • Committer: Jesse N. Richardson
  • Date: 2010-11-03 15:57:36 UTC
  • Revision ID: richardson183@bellsouth.net-20101103155736-1olsifwuc8wdhjnu
Added the colors.h file to serve as the defined colors

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "ao.h"
38
38
#include "oss.h"
39
39
 
 
40
// Color Code Library
 
41
#include "../color.h"
 
42
 
40
43
#define LOG_WAVE        (0)
41
44
#define VALGRIND        (0)
42
45
 
153
156
  if (audiofd == -1)
154
157
    {
155
158
      perror("/dev/dsp");
 
159
      RED();
 
160
      printf("ERROR: Not able to stream music to the /dev/dsp device");
 
161
      NORMAL();
156
162
 
157
163
      audiofd = open("/dev/dsp1", O_WRONLY, 0);
158
164