Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libao
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
libao
Commits
cd7b25d4
Commit
cd7b25d4
authored
23 years ago
by
Jack Moffitt
Browse files
Options
Downloads
Patches
Plain Diff
Stan Seibert's ao_raw device.
git-svn-id:
http://svn.xiph.org/trunk/ao@1440
0101bb08-14d6-0310-b084-bc0e0c8e3800
parent
904cfac0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/DRIVERS
+12
-0
12 additions, 0 deletions
doc/DRIVERS
include/ao/ao.h
+1
-0
1 addition, 0 deletions
include/ao/ao.h
src/Makefile.am
+1
-1
1 addition, 1 deletion
src/Makefile.am
src/audio_out.c
+9
-3
9 additions, 3 deletions
src/audio_out.c
with
23 additions
and
4 deletions
doc/DRIVERS
+
12
−
0
View file @
cd7b25d4
...
...
@@ -59,6 +59,18 @@ data you output.
"file" - Sets the output file. By default, this is
"output.wav".
raw
---
Raw sample output. Writes the sound data to disk in uncompressed,
headerless form using the byte order specified.
Option keys:
"file" - Sets the output file. Use "-" if you want to write
to stdout. By default this is "output.raw".
"byteorder" - Sets the byte order used in the output. Use
"native" for native machine byte order, "big" for
big-endian order, and "little" for little-endian order. By
default this is "native".
ADDING NEW DRIVERS
...
...
This diff is collapsed.
Click to expand it.
include/ao/ao.h
+
1
−
0
View file @
cd7b25d4
...
...
@@ -75,6 +75,7 @@ typedef struct ao_device_s {
#define AO_NULL 0
#define AO_WAV 1
#define AO_RAW 2
/* --- Functions --- */
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
1
−
1
View file @
cd7b25d4
...
...
@@ -7,7 +7,7 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include
lib_LTLIBRARIES
=
libao.la
libao_la_SOURCES
=
audio_out.c ao_wav.c ao_null.c
libao_la_SOURCES
=
audio_out.c
ao_raw.c
ao_wav.c ao_null.c
libao_la_LDFLAGS
=
-version-info
@LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
...
...
This diff is collapsed.
Click to expand it.
src/audio_out.c
+
9
−
3
View file @
cd7b25d4
...
...
@@ -55,6 +55,7 @@ typedef struct driver_tree_s {
extern
ao_functions_t
ao_null
;
extern
ao_functions_t
ao_wav
;
extern
ao_functions_t
ao_raw
;
driver_tree_t
*
driver_head
=
NULL
;
...
...
@@ -97,6 +98,7 @@ void ao_initialize(void)
{
driver_tree_t
*
dnull
;
driver_tree_t
*
dwav
;
driver_tree_t
*
draw
;
driver_tree_t
*
plugin
;
driver_tree_t
*
driver
;
DIR
*
plugindir
;
...
...
@@ -114,12 +116,16 @@ void ao_initialize(void)
dwav
=
(
driver_tree_t
*
)
malloc
(
sizeof
(
driver_tree_t
));
dwav
->
functions
=
&
ao_wav
;
dwav
->
handle
=
NULL
;
draw
=
(
driver_tree_t
*
)
malloc
(
sizeof
(
driver_tree_t
));
draw
->
functions
=
&
ao_raw
;
draw
->
handle
=
NULL
;
dnull
->
next
=
dwav
;
dwav
->
next
=
NULL
;
dwav
->
next
=
draw
;
draw
->
next
=
NULL
;
driver_head
=
dnull
;
driver
=
d
wav
;
driver
=
d
raw
;
/* now insert any plugins we find */
plugindir
=
opendir
(
AO_PLUGIN_PATH
);
...
...
@@ -151,7 +157,7 @@ void ao_shutdown(void)
if
(
!
driver_head
)
return
;
/* unload and free all the plugins */
driver
=
driver
->
next
->
next
;
driver
=
driver
->
next
->
next
->
next
;
/* Skip null, wav, and raw driver */
while
(
driver
)
{
if
(
driver
->
functions
)
free
(
driver
->
functions
);
if
(
driver
->
handle
)
dlclose
(
driver
->
handle
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment