Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1607
b: refs/heads/master
c: bfc5bdd
h: refs/heads/master
i:
  1605: 16be7ab
  1603: 41b8908
  1599: 0c9bf76
v: v3
  • Loading branch information
Jaroslav Kysela committed May 29, 2005
1 parent 9b94208 commit 9c8aabc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdc27f3a3fad42f797d4112719d8455fda78c2df
refs/heads/master: bfc5bddb8efb7e3d10e2f2e07dc2d68e808a9c68
6 changes: 3 additions & 3 deletions trunk/sound/core/oss/pcm_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ static long snd_pcm_oss_bytes(snd_pcm_substream_t *substream, long frames)
{
snd_pcm_runtime_t *runtime = substream->runtime;
snd_pcm_uframes_t buffer_size = snd_pcm_lib_buffer_bytes(substream);
frames = frames_to_bytes(runtime, frames);
long bytes = frames_to_bytes(runtime, frames);
if (buffer_size == runtime->oss.buffer_bytes)
return frames;
return (long)(((int64_t)runtime->oss.buffer_bytes * (int64_t)frames) / (int64_t)buffer_size);
return bytes;
return (long)(((int64_t)runtime->oss.buffer_bytes * (int64_t)bytes) / (int64_t)buffer_size);
}

static long snd_pcm_alsa_frames(snd_pcm_substream_t *substream, long bytes)
Expand Down

0 comments on commit 9c8aabc

Please sign in to comment.