T
Thomas
Hi everyone,
I think I'm about to crush my PDA in trying to figure this out! I'm
trying to adjust the playback volume of a wav file. I was inspired to
do this because I've seen other apps do this, and they all work on my
Ipaq 2215 so I know it's possible
At any rate, the core project is VB.NET (using VS .Net 2003), can also
do a class or some functionality C# if anyone has code laying around.
This is what I have so far:
Function for playing WAV:
Public Declare Function WCE_PlaySound Lib "CoreDll.dll" Alias
"PlaySound" (ByVal szSound As String, ByVal hMod As IntPtr, ByVal
flags As Integer) As Integer
For WAV volume:
Public Declare Function waveOutGetVolume Lib "Coredll.dll" (ByVal
hwo As Long, ByVal pdwVolume As Long) As Long
Public Declare Function waveOutSetVolume Lib "Coredll.dll" (ByVal
hwo As Long, ByVal pdwVolume As Long) As Long
When I try either get or set, an error is raised that the function is
not supported. The WAV file plays fine. However, this happens in
both the emulator and the pocket PC, so I suspect programmer error.
Any advice? Many thanks,
Tom
I think I'm about to crush my PDA in trying to figure this out! I'm
trying to adjust the playback volume of a wav file. I was inspired to
do this because I've seen other apps do this, and they all work on my
Ipaq 2215 so I know it's possible
At any rate, the core project is VB.NET (using VS .Net 2003), can also
do a class or some functionality C# if anyone has code laying around.
This is what I have so far:
Function for playing WAV:
Public Declare Function WCE_PlaySound Lib "CoreDll.dll" Alias
"PlaySound" (ByVal szSound As String, ByVal hMod As IntPtr, ByVal
flags As Integer) As Integer
For WAV volume:
Public Declare Function waveOutGetVolume Lib "Coredll.dll" (ByVal
hwo As Long, ByVal pdwVolume As Long) As Long
Public Declare Function waveOutSetVolume Lib "Coredll.dll" (ByVal
hwo As Long, ByVal pdwVolume As Long) As Long
When I try either get or set, an error is raised that the function is
not supported. The WAV file plays fine. However, this happens in
both the emulator and the pocket PC, so I suspect programmer error.
Any advice? Many thanks,
Tom