I finally Finshed My Specdrum Clone

Started by wadmixfm, June 03, 2021, 18:14:35

Previous topic - Next topic

wadmixfm

i will upload a version without your mod installed and set it to freeaudio

you compare

i have posted the miniaudio version on the Specdrum 2 topic for windows

i will post the freeaudio version install them and you tell me which is fastest

lee


wadmixfm

here you go midimaster download this version its all the same code but with freeaudio sdl windows 10 pro 64bit

https://share.bublup.com/ui/landing_page?item_id=001-i-a189011f-1136-43eb-9abb-f191d231e8b4

and this version is with your miniaudio added still using playsound

https://share.bublup.com/ui/landing_page?item_id=001-i-5a50eedd-c534-4d97-b163-c6e8e3f10f81

and when you test them go into the program and press S on the keys

this will let you play the sounds by hitting the keys

do the freeaudio first

then do yours

and tell me your findings

the only code i added was :-

Import mima.miniaudio
Global MiniAudio:TMiniAudio=New TMiniAudio
Function MyCallBack(a:Byte Ptr, PlayBuffer:Short Ptr, RecordingBuffer:Short Ptr, Frames%)
' do something with the samples
End Function
MiniAudio.OpenDevice( MiniAudio.PLAYBACK, Miniaudio.FORMAT_S16, 2, 44000, MyCallBack)

MiniAudio.StartDevice()


to the top of my program

and it works spot on

no latency at all

Lee



Midimaster

this sounds strange... FreeAudio has 60msec on Windows if you do not decide any driver but use the default. Without the source code I cannot check what happens.

I downloaded your link and installed the app. But the app did not work as expected. First test was to use the window close button and this did not work. Second strange thing was the manual. It is in DOC-format. Normally I would expect something like a HTML-document or a PDF. But never a (dangerous) DOC.
Third thing was the Menu. The app started with the MIDI-Port selection. After ENTER I could not do anything. The option C was blinking, but there was no reaction on any key. At the end I had to stop the app via TASK MANAGER.


Do you plan to publish the source code too? I would have a look on it.
...on the way to Egypt

Midimaster

#33
Quote from: wadmixfm on June 13, 2021, 14:32:50
....
Quoteyou had a little typo in the code:
Code: WritePointer = ReadPointer[original.length-1-i]

Quote
needs to be:Code: WritePointer = ReadPointer[original.length-1-i]
This is the code you sent me :)

Lee

Do we still have a problem with brackets in the SyntaxBomb-Software? This is what I see:

Screenshot:
...on the way to Egypt

wadmixfm

Ok run the program

Midi page selection

Press escape

Main menu

At flashing cursor type 1 and press enter

Div beat type 8 press enter

Song info page press escape

Back to main menu

Press S

Hit keys 1 to 0 for the sounds


wadmixfm

Do that on both versions and you will see what i mean

wadmixfm

The manual is written word for Microsoft

Lee

wadmixfm

I will post a video of it tomorrow and show you the differences if you cant get it running

wadmixfm

You must make sure it installs to the default install path you cant put it anywhere

wadmixfm

The program works fine

You were not choosing the song number
Then you need to type a div beat 8 is suffice
Prwss enter
Then song info
Press escape
Back to main menu all functions work fine

I will convert the manual

Lee

wadmixfm

If you go back to page 1 of this topic there is a video showing you what to do

Lee

Midimaster

with your detail instructions i was able to use both versions now. Your are right there is a significant latency difference between both versions. do you pland to publish the source code?
...on the way to Egypt

wadmixfm

No there is a lot

But as you see the latency is better with miniaudio in windows but i have not used it on the mac

Lee

Midimaster

but without having a look on the code I cannot find out why the latency changes. I would not have expected this. Do you have any code line related to audio drivers etc...?
...on the way to Egypt

wadmixfm