Displaying 6 results from an estimated 6 matches for "ao_initialize".
2000 Dec 16
1
Ogg Vorbis and Java
...r anything like that; those sorts of things will be
in other classes.
There was only one problem I ran into (other than the one you guys solved
for me before). Understand that I am using the Beta 3 RPM packaged
libraries. The problem I ran into was that I could not call ao_shutdown()
and then call ao_initialize() again later without segfaulting. So, now I
call ao_initialize() once and I never actually call ao_shutdown().
--
Greg
<HR NOSHADE>
<UL>
<LI>APPLICATION/X-GZIP attachment: vorbis-j-0.0.0.tar.gz
</UL>
-------------- next part --------------
A non-text attachment was scr...
2001 Jan 14
1
libao driver stuff
...ail, but noticed that Jack has rearranged some of the guts of ao since I
last looked at it.
In ao/include/ao/ao.h you define AO_NULL and AO_WAV to be 0 and 1,
respectively. If I want to add a raw driver that is compiled into the main
library, can I just add
#define AO_RAW 2
and then modify ao_initialize to put ao_raw into the driver tree?
---
Stan Seibert
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' i...
2013 Jun 03
0
libao on Debian
...= 3 ; // duration in seconds
char *sound ;
int nBytes ;
extern char *Sine(int sr, int nchan, double dur, int *nBytes) ;
int r, id ;
ao_device *device ;
ao_sample_format fmt ;
sound = Sine(sr, nchan, dur, &nBytes) ; // create sine tone(s)
ao_initialize() ;
if ( ( id = ao_default_driver_id() < 0 ) ) {
fprintf(stderr,"Error in ao_default_driver(): id = %d\n", id) ;
exit(EXIT_FAILURE) ;
}
fmt.bits = 16 ; // bits per sample
fmt.rate = sr ; // sampling rate
fmt.channels = nchan ; // cha...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...!= NULL)
+ {
+ ao_close(current->device);
+ current = current->next_device;
+ }
+}
+
int
main (int argc, char **argv)
{
@@ -207,8 +259,6 @@
int option_index = 1;
ao_option_t *temp_options = NULL;
int temp_driver_id = -1;
- devices *current;
- int bits, rate, channels;
ao_initialize();
@@ -291,37 +341,22 @@
exit (1);
}
- /* Open all of the devices */
- bits = 16;
- rate = 44100;
- channels = 2;
- current = param.outdevices;
-
- if (param.quiet < 1)
- fprintf(stderr, "Opening devices...\n");
-
- while (current != NULL) {
- ao_info_t *inf...
2013 Dec 04
1
endian problems with AIFF and WAV
...ample_format format;
int main(int argc, char *argv[])
{
int default_driver;
int frames_read;
int *buffer;
SNDFILE *sndfile;
SF_INFO sf_info;
FILE *fp;
if (argc != 2) {
printf("usage: %s <filename>\n", argv[0]);
exit(1);
}
ao_initialize();
default_driver = ao_default_driver_id();
fp = fopen(argv[1], "rb");
if (fp == NULL) {
printf("Cannot open %s.\n", argv[1]);
exit(2);
}
sf_info.format = 0;
sndfile = sf_open_fd(fileno(fp), SFM_READ, &sf_info, 1);
memset(&format...
2002 Oct 05
2
ogg123 remote interface
...---------- config file options -------------------------- */
@@ -280,13 +273,14 @@
int items;
struct stat stat_buf;
int i;
+ buf_t *audio_buffer;
+ audio_play_arg_t audio_play_arg;
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
ao_initialize();
- stat_format = stat_format_create();
options_init(&options);
file_options_init(file_opts);
@@ -295,7 +289,7 @@
optind = parse_cmdline_options(argc, argv, &options, file_opts);
audio_play_arg.devices = options.devices;
- audio_play_arg.stat_format = stat_format;
+ audi...