Click here to Skip to main content
15,920,629 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Events and Windows NT Pin
KreativeKai14-Apr-05 6:37
professionalKreativeKai14-Apr-05 6:37 
GeneralRe: Events and Windows NT Pin
Dave Kreskowiak14-Apr-05 6:58
mveDave Kreskowiak14-Apr-05 6:58 
GeneralRe: Events and Windows NT Pin
KreativeKai22-Apr-05 4:04
professionalKreativeKai22-Apr-05 4:04 
GeneralRe: Events and Windows NT Pin
Dave Kreskowiak23-Apr-05 2:45
mveDave Kreskowiak23-Apr-05 2:45 
GeneralHelp with Track bar linked to mci sound Pin
steve shafa13-Apr-05 0:30
steve shafa13-Apr-05 0:30 
GeneralRe: Help with Track bar linked to mci sound Pin
Dave Kreskowiak13-Apr-05 5:23
mveDave Kreskowiak13-Apr-05 5:23 
GeneralRe: Help with Track bar linked to mci sound Pin
steve shafa13-Apr-05 6:11
steve shafa13-Apr-05 6:11 
GeneralRe: Help with Track bar linked to mci sound Pin
Dave Kreskowiak13-Apr-05 7:20
mveDave Kreskowiak13-Apr-05 7:20 
I've never gone through the MCI API functions, but it looks like you can probably get away with using the MCI Command STATUS WAVEAUDIO LENGTH to get the length of the media file. Use that as the maximum value for the TrackBar. You'll probably have to do some translating to get the time returned by STATUS into a more usable format, like converting the total time to total seconds.

In order to get the current position of the playback, you'll need to setup a timer and poll for the position status using the STATUS WAVEAUDIO POSITION command. This too will be returns in a time format. Convert it to seconds as before and you can use that to update the position of the TrackBar.

Same thing with seeking with the TrackBar. Convert the number of seconds returned by the position of the TrackBar into the appropriate time format, then use the SEEK WAVEAUDIO TO POSITION command to control where in the file to resume playing.


Sorry, I don't have any example code, 'cause liek I said, never played with it before.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Help with Track bar linked to mci sound Pin
steve shafa13-Apr-05 7:27
steve shafa13-Apr-05 7:27 
GeneralRe: Help with Track bar linked to mci sound Pin
steve shafa13-Apr-05 7:39
steve shafa13-Apr-05 7:39 
GeneralRe: Help with Track bar linked to mci sound Pin
Dave Kreskowiak13-Apr-05 8:05
mveDave Kreskowiak13-Apr-05 8:05 
GeneralRe: Help with Track bar linked to mci sound Pin
steve shafa13-Apr-05 12:50
steve shafa13-Apr-05 12:50 
GeneralRe: Help with Track bar linked to mci sound Pin
Dave Kreskowiak13-Apr-05 17:05
mveDave Kreskowiak13-Apr-05 17:05 
QuestionHow to start a process when windows starts first time Pin
usmanmir12-Apr-05 19:24
usmanmir12-Apr-05 19:24 
AnswerRe: How to start a process when windows starts first time Pin
Dave Kreskowiak13-Apr-05 4:26
mveDave Kreskowiak13-Apr-05 4:26 
GeneralPassing value from combo box to textbox (urgent) Pin
AndyYie12-Apr-05 16:19
AndyYie12-Apr-05 16:19 
GeneralRe: Passing value from combo box to textbox (urgent) Pin
vertig073012-Apr-05 16:22
vertig073012-Apr-05 16:22 
GeneralRe: Passing value from combo box to textbox (urgent) Pin
AndyYie12-Apr-05 16:26
AndyYie12-Apr-05 16:26 
GeneralListView RElational Pin
Codero12-Apr-05 14:50
Codero12-Apr-05 14:50 
GeneralRe: ListView RElational Pin
Dave Kreskowiak13-Apr-05 4:33
mveDave Kreskowiak13-Apr-05 4:33 
Generalslash screen Pin
Lisana12-Apr-05 9:58
Lisana12-Apr-05 9:58 
GeneralRe: slash screen Pin
rwestgraham12-Apr-05 10:16
rwestgraham12-Apr-05 10:16 
GeneralRe: slash screen Pin
Lisana12-Apr-05 10:43
Lisana12-Apr-05 10:43 
GeneralRe: slash screen Pin
vertig073012-Apr-05 11:29
vertig073012-Apr-05 11:29 
GeneralRe: slash screen Pin
Lisana12-Apr-05 12:05
Lisana12-Apr-05 12:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.