[791] | 1 | //file.c: |
---|
| 2 | |
---|
| 3 | /* |
---|
[5381] | 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012 |
---|
[791] | 5 | * |
---|
[4037] | 6 | * The code (may) include prototypes and comments (and maybe |
---|
| 7 | * other code fragements) from the yiff sound system. |
---|
| 8 | * According to the debian/copyright file upstream author is |
---|
| 9 | * Tara Milana <learfox@twu.net>. Also copyright is listed as: |
---|
| 10 | * Copyright (C) 1997-2003 WolfPack Entertainment |
---|
| 11 | * |
---|
[791] | 12 | * This file is part of libroaryiff a part of RoarAudio, |
---|
| 13 | * a cross-platform sound system for both, home and professional use. |
---|
| 14 | * See README for details. |
---|
| 15 | * |
---|
| 16 | * This file is free software; you can redistribute it and/or modify |
---|
| 17 | * it under the terms of the GNU General Public License version 3 |
---|
| 18 | * as published by the Free Software Foundation. |
---|
| 19 | * |
---|
| 20 | * libroaryiff is distributed in the hope that it will be useful, |
---|
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 23 | * GNU General Public License for more details. |
---|
| 24 | * |
---|
| 25 | * You should have received a copy of the GNU General Public License |
---|
| 26 | * along with this software; see the file COPYING. If not, write to |
---|
[3517] | 27 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 28 | * Boston, MA 02110-1301, USA. |
---|
[791] | 29 | * |
---|
[4037] | 30 | * NOTE: code fragments (like prototypes) taken from the yiff package |
---|
| 31 | * are 'GPLv2 or later' and are upgraded to GPLv3 by being used |
---|
| 32 | * within this document. |
---|
| 33 | * |
---|
[791] | 34 | */ |
---|
| 35 | |
---|
| 36 | #include <libroaryiff.h> |
---|
| 37 | |
---|
[792] | 38 | int YGetSoundObjectAttributes (YConnection *con, const char *path, YEventSoundObjectAttributes *buf) { |
---|
[5270] | 39 | (void)con; |
---|
| 40 | |
---|
[792] | 41 | if ( buf == NULL ) |
---|
| 42 | return -1; |
---|
| 43 | |
---|
| 44 | buf->format = SndObjTypeDSP; // RoarAudio doesn't make a hard diffrence here |
---|
| 45 | // TODO: maybe we should check for the codec |
---|
| 46 | |
---|
| 47 | // as we do not know anything we fill with defaults: |
---|
| 48 | buf->sample_size = ROAR_BITS_DEFAULT; // don't know, but seems to be in bits not bytes |
---|
| 49 | buf->channels = ROAR_CHANNELS_DEFAULT; |
---|
| 50 | buf->sample_rate = ROAR_RATE_DEFAULT; |
---|
| 51 | buf->length = 0; |
---|
| 52 | |
---|
| 53 | strncpy(buf->path, path, YPathMax); |
---|
| 54 | |
---|
| 55 | return 0; |
---|
| 56 | } |
---|
| 57 | |
---|
[791] | 58 | //ll |
---|