habe mir über das offizielle Fischertechnik-Repo die TXT C-Download Beispielprojekte angesehen.
https://github.com/fischertechnik/txt_demo_c_download
Soweit funktionieren die Programme auch (Motoransteuerung). Ein Problem habe ich nun aber beim Abspielen von Audiodateien (Standard 01-Airplane Datei). Beim Ausführen des unten aufgeführten Code-Beispiels wird zunächst die Zeile
Code: Alles auswählen
"**PlaySound Action:1, Nr:1 Rep:1 Cmd: 1"
PlaySound: Sound Start
Code: Alles auswählen
#include <stdio.h> // for printf()
#include <unistd.h> // for sleep()
#include <iostream>
#include "KeLibTxtDl.h" // TXT Lib
#include "FtShmem.h" // TXT Transfer Area
// Common debugging stuff for RoboProLib
unsigned int DebugFlags;
FILE *DebugFile;
FISH_X1_TRANSFER *pTArea;
int main(void)
{
if (StartTxtDownloadProg() == KELIB_ERROR_NONE)
{
pTArea = GetKeLibTransferAreaMainAddress();
if (pTArea)
{
pTArea->sTxtOutputs.u16SoundIndex = 1;
pTArea->sTxtOutputs.u16SoundRepeat = 1;
pTArea->sTxtOutputs.u16SoundCmdId++;
}
StopTxtDownloadProg();
}
return 0;
}
Hat das schon jemand hinbekommen oder kennt vielleicht eine bessere Doku als die Readme im Git?
Danke für jeden Hinweis.