Posted: Sun Nov 10, 2002 1:27 am
Restored from previous forum. Originally posted by Froggerprogger.
>> I think I posted the following in the wrong forum, so here it is:<<
Hello!
I'll try to ask my question in English
My aim is to communicate with the PCs Soundcard in LowLevelMode via the Win-API-functions mmio/waveOut... to listen to mathematical Expressions.
I tried hard to do so - without luck - by doing the following:
(I have a VB-Script wich I tried to translate)
1. Open a WAV-File and get the Format-Chunk-Data via mmIO - functions or my own Procedures.
2. AllocateMemory() for Buffered Output
3. Open an Output-Device with waveOutOpen_()
4. While Playing:
- Copy WAV-Data into Memory
- Play MemoryData with waveOutPrepareHeader_()
I think it's no problem to change the Data-Input from a Wavefile-FileSeek to a Math-Expression. But the points 3 and 4 drive me crazy!
My questions now:
a) Is the plan generally OK?
b) Can anyone give me some hints? Or any other help? Give examples?
Purebasic - what a nice name for a girl-friend
>> I think I posted the following in the wrong forum, so here it is:<<
Hello!
I'll try to ask my question in English
My aim is to communicate with the PCs Soundcard in LowLevelMode via the Win-API-functions mmio/waveOut... to listen to mathematical Expressions.
I tried hard to do so - without luck - by doing the following:
(I have a VB-Script wich I tried to translate)
1. Open a WAV-File and get the Format-Chunk-Data via mmIO - functions or my own Procedures.
2. AllocateMemory() for Buffered Output
3. Open an Output-Device with waveOutOpen_()
4. While Playing:
- Copy WAV-Data into Memory
- Play MemoryData with waveOutPrepareHeader_()
I think it's no problem to change the Data-Input from a Wavefile-FileSeek to a Math-Expression. But the points 3 and 4 drive me crazy!
My questions now:
a) Is the plan generally OK?
b) Can anyone give me some hints? Or any other help? Give examples?
Purebasic - what a nice name for a girl-friend