fix sleepTime to be microseconds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
873f6659eb
commit
6c07a21e12
@ -59,7 +59,7 @@ null_fake_interrupt(void* cookie)
|
||||
// exchange the buffer pointer and update the
|
||||
// time information. Instead of exiting, we wait
|
||||
// until the next fake interrupt appears.
|
||||
int sleepTime;
|
||||
bigtime_t sleepTime;
|
||||
device_t* device = (device_t*) cookie;
|
||||
int sampleRate;
|
||||
|
||||
@ -75,7 +75,7 @@ null_fake_interrupt(void* cookie)
|
||||
|
||||
// The time between until we get a new valid buffer
|
||||
// from our soundcard: buffer_length / samplerate
|
||||
sleepTime = (device->playback_stream.buffer_length*1000) / sampleRate;
|
||||
sleepTime = (device->playback_stream.buffer_length*1000000LL) / sampleRate;
|
||||
|
||||
while (device->running) {
|
||||
cpu_status status;
|
||||
|
Loading…
Reference in New Issue
Block a user