Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ac07a13 in mainline


Ignore:
Timestamp:
2011-11-30T23:08:49Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
84d6c39
Parents:
c25df01
Message:

sb16: Tke number of channels as external parameter.

Location:
uspace/drv/audio/sb16
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/beep.h

    rc25df01 rac07a13  
    3131extern const void *beep;
    3232extern const size_t beep_size;
     33extern const unsigned channels;
  • uspace/drv/audio/sb16/beep16.c

    rc25df01 rac07a13  
    444144410xc3ee, 0xc93e, 0xcec5, 0xd47e, 0xda64, 0xe06b, 0xe699, 0xecda, 0xf332, 0xf996,
    44424442};
    4443 const size_t beep_size = sizeof(beep);
     4443const size_t beep_size = sizeof(beep16);
    44444444const void *beep = beep16;
     4445const unsigned channels = 1;
  • uspace/drv/audio/sb16/sb16.c

    rc25df01 rac07a13  
    135135
    136136        ddf_log_note("Playing startup sound.\n");
    137         sb_dsp_play(&sb->dsp, beep, beep_size, 44100, 1, 16);
     137        sb_dsp_play(&sb->dsp, beep, beep_size, 44100, channels, 16);
    138138
    139139        return EOK;
Note: See TracChangeset for help on using the changeset viewer.