Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:10:15+00:00 2026-05-29T23:10:15+00:00

I am new to stackoverflow and the programming world. I have a basic program

  • 0

I am new to stackoverflow and the programming world. I have a basic program i’m making that will play a song in the background.

I already have that part working, it auto starts a launch of program.

However, I would like to have a button that pauses, then resumes the audio.

(I am trying to avoid making it a media player and using the media player control) Song was add as a resource.

My.Computer.Audio.Stop (works to stop it.)

But how can I implement the pause,resume? by adding a boolean or something?

(I would like pause and resume feature to be within the same button)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:10:17+00:00Added an answer on May 29, 2026 at 11:10 pm

    I used reflector and the internal implementation of Audio.Play uses the SoundPlayer:

    Public Sub Play(ByVal location As String, ByVal playMode As AudioPlayMode)
        Me.ValidateAudioPlayModeEnum(playMode, "playMode")
        Dim sound As New SoundPlayer(Me.ValidateFilename(location))
        Me.Play(sound, playMode)
    End Sub
    

    So unless you make your own or derive from the SoundPlayer class your options appear to be quite limited (ref Audio methods dont have pause or resume: http://msdn.microsoft.com/en-us/library/cf1shcah(v=vs.90).aspx).

    May I suggest giving up on this class, it doesn’t support the pause/resume methods you want. Instead focus your time on How can I pause an MP3 file using C#? – the CodeProject Playing MP3s using MCI or alternatively look into methods like this: http://alvas.net/alvas.audio.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new here to stackoverflow, so bear with me. I have a book that
I have been using Stackoverflow for a while to find solutions to my programming
I am new to stackoverflow and Java programming. I was practicing inheritance with sample
I'm new to both OpenCv and StackOverflow, and almost new to Android programming so
I'm brand new to Java, programming, and StackOverflow. I need to use a list
I'm new to world of .NET programming and I want to know about websites
I'm fairly new to programming but I've been reading some interesting discussions on StackOverflow
I have read countless blogs, posts and StackOverflow questions about the new features of
I'm pretty new with Android programming, started a few weeks ago. Stackoverflow it's my
I am new to C, but not to programming. I have been roped into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.