/* File: samg.c Purpose: Create an Simple Audio Manager (AUDIO_PP.IFO) dvda-author - Author a DVD-Audio DVD (C) Dave Chapman 2005 The latest version can be found at http://dvd-audio.sourceforge.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #include "audio.h" int create_samg(char* audiotsdir,int titleset,fileinfo_t* files, int* ntracks, int ngroups, int* atsi_sectors, int startsector) { int i,j,g; int sectoroffset; FILE* fpout; char outfile[560]; uint8_t samg[2048*8]; memset(samg,0,sizeof(samg)); memcpy(&samg[0],"DVDAUDIOSAPP",12); j=0; for (g=0;g