linux0id 0 Light Poster

Hello everyone!
I am writing a music playback program. I have got the playing of audio working using ffmpeg and libao. Now I need to implement the ability to pause the playback, and I have a few ideas -

  • Check the variable (ie. pause = true/false)
  • Pause the playback thread (I'm using pthreads, if thats possible).

Anyone have any other ideas, comments or suggestions? Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.