CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35

Thread: audio player

  1. #31
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: audio player

    *double checking recent posts*

    Yes, well I'm sorry. The PlaySound-statement should be
    Code:
    PlaySound f$, 0, SND_SYNC
    where the call won't return until the file is played to the end.

    Code:
    PlaySound f$, 0, SND_ASYNC OR SND_NOSTOP
    will play the file in background, without stopping the previously startet PlaySound.

    I know this is not quite yet what you want, but try this out and tell if you got any sound playing, then we continue and look for something to determine the end of playing and start playing the next song in the list.

  2. #32
    Join Date
    Nov 2008
    Posts
    17

    Re: audio player

    i have tryed what was posted and it still dosn't work.
    would it be better if i used a media player controle

  3. #33
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: audio player

    You could try DirectSound. This played the avi in vista
    Attached Files Attached Files
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #34
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: audio player

    This looks interesting, David, but overlooking the code, it will refuse to play .wma files. It only accepts .mp3 for audio.
    I shall get me a .wma and try if it will be played, too.

  5. #35
    Join Date
    Nov 2008
    Posts
    17

    Talking Re: audio player

    thaks for all the help it was much apreciated.
    i have know got the program working an i am so pleased but i couldent have done it without all of you once again thank you

Page 3 of 3 FirstFirst 123

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured