O
Ot
I found information on PlaySound. I implemented it in my program and it
works just dandy. The only little problem is that I have to package the
..wav files and send them along since PlaySound plays a sound file.
One of the options I found in a nice description of PlaySound says that
there are a couple of other choices.
1) The sound can be in the registry and actually controlled/selected by
the end user.
2) The sound can also be embedded in the assembly as long as I can point
to the area containing the sound.
I have no clue as to how to set up the registry for sounds for a particular
application. The wav files have to be installed somewhere on the user's
machine anyway, so this doesn't seem a really great way to go. If it is
fairly simple I might do it anyway.
The best seems to be to embed the wav in the application somehow and play
the in-memory copy. My problem here is I have no idea how to get the
contents of the wav into the application at a referenceable memory
location. And I don't know if there is any conversion required as I bring
it in. There must be some hint in the file as to, for example, how long
the wav is. Or maybe it is self defining with a termination byte
sequence -- maybe an all 0s or all Fs word. No clue.
Any help on the latter two possibilities would be appreciated!
Regards,
Ot
works just dandy. The only little problem is that I have to package the
..wav files and send them along since PlaySound plays a sound file.
One of the options I found in a nice description of PlaySound says that
there are a couple of other choices.
1) The sound can be in the registry and actually controlled/selected by
the end user.
2) The sound can also be embedded in the assembly as long as I can point
to the area containing the sound.
I have no clue as to how to set up the registry for sounds for a particular
application. The wav files have to be installed somewhere on the user's
machine anyway, so this doesn't seem a really great way to go. If it is
fairly simple I might do it anyway.
The best seems to be to embed the wav in the application somehow and play
the in-memory copy. My problem here is I have no idea how to get the
contents of the wav into the application at a referenceable memory
location. And I don't know if there is any conversion required as I bring
it in. There must be some hint in the file as to, for example, how long
the wav is. Or maybe it is self defining with a termination byte
sequence -- maybe an all 0s or all Fs word. No clue.
Any help on the latter two possibilities would be appreciated!
Regards,
Ot