473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Playing WMA files from a resource?

Lex
I have a simple app that allows a user to record a number of sounds
and save those sounds (in wave form) in a resource file. I am using
mciSendString for all the recording.

I have another app that looks up the sounds in the resource file and
plays them via win32 PlaySound (from memory).

My question is: is there an easy way to convert the wave byte data
into WMA and save that in the resource file? Of course I'd need a way
to play the bytes from memory as well. This would greatly reduce the
size of my resource file.

Regards
Nov 16 '05 #1
1 2154

"Lex" <de**@homerlex.mailshell.com> wrote in message
news:c5*************************@posting.google.co m...
I have a simple app that allows a user to record a number of sounds
and save those sounds (in wave form) in a resource file. I am using
mciSendString for all the recording.

I have another app that looks up the sounds in the resource file and
plays them via win32 PlaySound (from memory).

My question is: is there an easy way to convert the wave byte data
into WMA and save that in the resource file? Of course I'd need a way
to play the bytes from memory as well. This would greatly reduce the
size of my resource file.


You could use the WME sdk and its assocaited encoding\decoding interfaces,
but that is a pretty hefty system for this.

You might wanna look into open source systems like OggVorbis and see if you
can find a ported codec rather than trying to use a closed format that will
increase your runtime footprint signficantly.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hans Kesting | last post by:
Hi, When I add a webform, VS generates three files: WebForm1.aspx WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess) WebForm1.aspx.resx What is that last file for? How can I use...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
7
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
5
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.