flat assembler
Message board for the users of flat assembler.

Index > Windows > How to play audio files under windows ?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 17 Jan 2013, 22:45
If you want to have a progress bar. Either parse wav file by yourself to get the length or use the provided interfaces(dirty but efficient) on MSDN.


Then when you press play, you start a timer with 1 second interval that updates the progress bar until stop is pressed.

If you don't want to parse the file, then play the file in Synchronous mode and wait for it to finish then stop the timer which will then stop the progress bar.
Post 17 Jan 2013, 22:45
View user's profile Send private message Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 517
Location: Munich
shutdownall 18 Jan 2013, 19:18
This is solved, I use an external player.
Yes I could program a player by myself - but for what ?
There are maybe 100 or more different "players" on the market. Wink
Post 18 Jan 2013, 19:18
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.