Changeset 25229

Show
Ignore:
Timestamp:
04/28/08 15:20:48 (7 months ago)
Author:
korli
Message:

fix sleepTime to be microseconds

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/add-ons/kernel/drivers/audio/null/null_hardware.c

    r22299 r25229  
    6060        // time information. Instead of exiting, we wait 
    6161        // until the next fake interrupt appears. 
    62         int sleepTime; 
     62        bigtime_t sleepTime; 
    6363        device_t* device = (device_t*) cookie; 
    6464        int sampleRate; 
     
    7676        // The time between until we get a new valid buffer 
    7777        // from our soundcard: buffer_length / samplerate 
    78         sleepTime = (device->playback_stream.buffer_length*1000) / sampleRate; 
     78        sleepTime = (device->playback_stream.buffer_length*1000000LL) / sampleRate; 
    7979 
    8080        while (device->running) {