Ticket #6203: multiAudioTestUpdate.patch

File multiAudioTestUpdate.patch, 845 bytes (added by Karvjorm, 10 years ago)

A patch to add an include file for sin function

  • src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp

     
    99#include <stdio.h>
    1010#include <string.h>
    1111#include <unistd.h>
     12#include <math.h>
    1213
    1314#ifdef HAIKU_MULTI_AUDIO
    1415#   include <hmulti_audio.h>
     
    2930};
    3031const struct {
    3132    uint32  type;
    32     char*   name;
     33    const char* name;
    3334} kFormats[] = {
    3435    {B_FMT_8BIT_S, "8bit"},
    3536    {B_FMT_8BIT_U, "8bit-unsigned"},
     
    4445
    4546
    4647struct cmd_entry {
    47     char*   name;
    48     void    (*func)(int argc, char **argv);
    49     char*   help;
     48    const char* name;
     49    void        (*func)(int argc, char **argv);
     50    const char* help;
    5051};
    5152
    5253