Changeset 1668:eaa86ade177c in roaraudio


Ignore:
Timestamp:
05/09/09 18:32:38 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use only 20 cycles per sec on OpenBSD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/output.h

    r1062 r1668  
    3131//#define ROAR_OUTPUT_BUFFER_SAMPLES 1024 
    3232#ifdef DEBUG 
     33// in case of debugging we use a big number of samples to make lager cycles 
    3334#define ROAR_OUTPUT_BUFFER_SAMPLES 2048 
    3435#else 
    3536//#define ROAR_OUTPUT_BUFFER_SAMPLES 441 
     37 
     38// in normal case we use 100 cycles per sec, as we do not know the sample 
     39// rate at compile time we guess it's normaly the default rate. 
     40// on OpenBSD we need to set a lower freq, use 20 cycles per sec here as 
     41// it seems to work. 
     42// FIXME: find out what the problem is and how to fix 
     43#ifdef ROAR_OS_OPENBSD 
     44#define ROAR_OUTPUT_BUFFER_SAMPLES (ROAR_RATE_DEFAULT/20) 
     45#else 
    3646#define ROAR_OUTPUT_BUFFER_SAMPLES (ROAR_RATE_DEFAULT/100) 
     47#endif 
     48 
    3749#endif 
    3850 
Note: See TracChangeset for help on using the changeset viewer.