Changeset 792:35987a57e1af in roaraudio for libroaryiff


Ignore:
Timestamp:
09/17/08 03:30:21 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

implemented a basic YGetSoundObjectAttributes()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaryiff/file.c

    r791 r792  
    2525#include <libroaryiff.h> 
    2626 
     27int YGetSoundObjectAttributes (YConnection *con, const char *path, YEventSoundObjectAttributes *buf) { 
     28 if ( buf == NULL ) 
     29  return -1; 
     30 
     31 buf->format = SndObjTypeDSP; // RoarAudio doesn't make a hard diffrence here 
     32                              // TODO: maybe we should check for the codec 
     33 
     34 // as we do not know anything we fill with defaults: 
     35 buf->sample_size = ROAR_BITS_DEFAULT; // don't know, but seems to be in bits not bytes 
     36 buf->channels    = ROAR_CHANNELS_DEFAULT; 
     37 buf->sample_rate = ROAR_RATE_DEFAULT; 
     38 buf->length      = 0; 
     39 
     40 strncpy(buf->path, path, YPathMax); 
     41 
     42 return 0; 
     43} 
     44 
    2745//ll 
Note: See TracChangeset for help on using the changeset viewer.