Page 1 of 1

audio drop

Posted: 22 Nov 2022 14:48
by Radiostar929
Hi Bernd How do you load in a 10 second audio drop and play it on command?

Re: audio drop

Posted: 22 Nov 2022 18:28
by radio42
There are several ways. E.g. you can use the Standby-Player.

But directly via control-commands you can use e.g. the following commands (see the User Manual Appendix for details):
- EXEC_PLAY_FILE

Example: EXEC_PLAY_FILE C:\test\test.mp3|OUT

or
- EXEC_DIRECTPLAYER_CREATE
- EXEC_DIRECTPLAYER_PLAY, _PAUSE, _STOP
- EXEC_DIRECTPLAYER_FREE

Here is a sample command sequence:

1) Create the virtual direct player:
EXEC_DIRECTPLAYER_CREATE MyPlayer|C:\Test\test.pfp|OUT

2) Start playback:
EXEC_DIRECTPLAYER_PLAY MyPlayer

3) Stop and Free it:
EXEC_DIRECTPLAYER_STOP MyPlayer
EXEC_DIRECTPLAYER_FREE MyPlayer

Here is another use case: viewtopic.php?p=8933