play mp3 (embedding WMP?) and voice memo recording in vb.net pocket pc 2002 app

M

Mad Scientist Jr

I am building an application for Pocket PC (2000 & 2002) using Visual
Studio .NET 2003.

The app needs to have an integrated MP3 player (WMP 7.1 is fine) &
voice memo recorder (like the one built into my Pocket PC).

The app would play an mp3 file, access the time info, allow the user
to
pause the file, allow them to record a separate voice memo and save
the voice memo to a separate WAV file (8-bit 8 KHz is fine).

Basically what I need is sample source code or instructions on how to
1) embed Windows Media Player 7.1 (or any version that can play MP3)
in my app
and get it to play and pause an MP3 file and access the time info
2) record a voice memo and save to a 8-bit 8 KHz WAV file on the
device

If there is an easier way to play/pause an MP3 file and access the
time info (the minute/second currently being played),
instead of embedding WMP, let me know.

Sample code would be a big help (VB.NET for pocket pc, or smart device
application in vs 2003 .net )

many thanks in advance!
 
M

Mad Scientist Jr

Thanks for your reply... Unfortunately to get WMP functionality you
have to buy the full CFCOM package which is $4-500 minimum. Isn't
there some way to just add a reference to the DLL or OCX in the
project and then register it with an alias like

Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"
(ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As
Long) As Long

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top