audio drop

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Radiostar929
Posts: 44
Joined: 02 Jan 2021 15:31
audio drop

Post by Radiostar929 »

Hi Bernd How do you load in a 10 second audio drop and play it on command?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: audio drop

Post 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

Post Reply