Skip to content

Instantly share code, notes, and snippets.

@azizulhakim
Created June 19, 2015 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizulhakim/b15b002f74e77f88cd5a to your computer and use it in GitHub Desktop.
Save azizulhakim/b15b002f74e77f88cd5a to your computer and use it in GitHub Desktop.
static snd_pcm_uframes_t audio_pointer(struct snd_pcm_substream *substream)
{
struct audio *audio = snd_pcm_substream_chip(substream);
return bytes_to_frames(substream->runtime, audio->buffer_pos);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment