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:
@@ -59,7 +59,7 @@ null_fake_interrupt(void* cookie)
|
|||||||
// exchange the buffer pointer and update the
|
// exchange the buffer pointer and update the
|
||||||
// time information. Instead of exiting, we wait
|
// time information. Instead of exiting, we wait
|
||||||
// until the next fake interrupt appears.
|
// until the next fake interrupt appears.
|
||||||
int sleepTime;
|
bigtime_t sleepTime;
|
||||||
device_t* device = (device_t*) cookie;
|
device_t* device = (device_t*) cookie;
|
||||||
int sampleRate;
|
int sampleRate;
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ null_fake_interrupt(void* cookie)
|
|||||||
|
|
||||||
// The time between until we get a new valid buffer
|
// The time between until we get a new valid buffer
|
||||||
// from our soundcard: buffer_length / samplerate
|
// 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) {
|
while (device->running) {
|
||||||
cpu_status status;
|
cpu_status status;
|
||||||
|
|||||||
Reference in New Issue
Block a user