News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Miscellaneous Forum
 
The WavFile Class. How to Import

Reply

by Craig Sparks [sparks at overlandaudio dot com]
posted on 2003/10/19

I need instruction as to how to create the class as a dll in Visual Basic. I thought I did it right and references it in the TestApp.vb but VS.NET complains that it doesnt recognize the "Imports Org.Mentalis.Multimedia"

Step by step guide for idiots to get that going? ;)

Also in your opinion how much would be involved to make that class work with multi channel WAVFORMATEX files?

Thanks,

Craig

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/10/19
Reply

VB.NET has the annoying habbit of specifying a default namespace. This means that if you add one of our classes to your project, you shouldn't import Org.Mentalis.Multimedia but rather <PROJECT_NAME>.Org.Mentalis.Multimedia where PROJECT_NAME is the name of your project.

You can change the default namespace in the Project Options dialog [Common Properties -> General -> Root namespace].

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/10/19
Reply

As for the multi channel WAVE files, the class should work perfectly with multi channel WAVE files.

by Craig Sparks [sparks at overlandaudio dot com]
posted on 2003/10/20
Reply

Thanks, that fixed it!

As for the multichannel WavFormatEx files. Everyone I have tried has failed as follows:


An unhandled exception of type 'WaveFileMent.Org.Mentalis.Multimedia.MediaException' occurred in wavefilement.dll

Additional information: An error occurs while opening the WAVE device.

Which happens according to the debugger in the:

Public Function BeginPlay

at:

For i = 0 To m_Header.Length - 1


I even tried 2 channel-16bits files but made it of the type WavFormatEx and the same error occurs. The files are valid and play in several applications properly so I'm guessing there is something about the different header it doesnt like.

Plus outside of DirectX how does one open a multichannel buffer?

Thanks for a wonderful site and service. I just donated $50 as botanika@orangesmoothie.org to help out.

Craig

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/10/20
Reply

Playing 'Windows XP Startup.wav' [from the \WINDOWS\Media\ dircetory] works perfectly on my computer, and this file is a 2-channel WAVE file.
Can you send me one of those WAVE files that causes a MediaException? You can find my email address in the header of this post.

P.S. thanks a lot for the donation!

by Craig Sparks [sparks at overlandaudio dot com]
posted on 2003/10/21
Reply

Done. Got the email off today.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.