Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
703d0d4a
Commit
703d0d4a
authored
Sep 13, 2007
by
Josh Coalson
Browse files
add encoder examples
parent
9f28b59c
Changes
7
Hide whitespace changes
Inline
Side-by-side
FLAC.dsw
View file @
703d0d4a
...
...
@@ -207,8 +207,14 @@ Package=<4>
Project_Dep_Name example_c_decode_file
End Project Dependency
Begin Project Dependency
Project_Dep_Name example_c_encode_file
End Project Dependency
Begin Project Dependency
Project_Dep_Name example_cpp_decode_file
End Project Dependency
Begin Project Dependency
Project_Dep_Name example_cpp_encode_file
End Project Dependency
}}}
###############################################################################
...
...
@@ -228,6 +234,21 @@ Package=<4>
###############################################################################
Project: "example_c_encode_file"=.\examples\c\encode\file\example_c_encode_file.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name libFLAC_static
End Project Dependency
}}}
###############################################################################
Project: "example_cpp_decode_file"=.\examples\cpp\decode\file\example_cpp_decode_file.dsp - Package Owner=<4>
Package=<5>
...
...
@@ -246,6 +267,24 @@ Package=<4>
###############################################################################
Project: "example_cpp_encode_file"=.\examples\cpp\encode\file\example_cpp_encode_file.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name libFLAC++_static
End Project Dependency
Begin Project Dependency
Project_Dep_Name libFLAC_static
End Project Dependency
}}}
###############################################################################
Project: "flac"=.\src\flac\flac.dsp - Package Owner=<4>
Package=<5>
...
...
FLAC.sln
View file @
703d0d4a
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C++ Express 2005
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_c_decode_file", "example\c\decode\file\example_c_decode_file.vcproj", "{4cefbd00-c215-11db-8314-0800200c9a66}"
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_c_decode_file", "example
s
\c\decode\file\example_c_decode_file.vcproj", "{4cefbd00-c215-11db-8314-0800200c9a66}"
ProjectSection(ProjectDependencies) = postProject
{4cefbc84-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
EndProjectSection
EndProject
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_cpp_decode_file", "example\cpp\decode\file\example_cpp_decode_file.vcproj", "{4cefbe00-c215-11db-8314-0800200c9a66}"
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_c_encode_file", "examples\c\encode\file\example_c_encode_file.vcproj", "{4cefbd01-c215-11db-8314-0800200c9a66}"
ProjectSection(ProjectDependencies) = postProject
{4cefbc84-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
EndProjectSection
EndProject
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_cpp_decode_file", "examples\cpp\decode\file\example_cpp_decode_file.vcproj", "{4cefbe00-c215-11db-8314-0800200c9a66}"
ProjectSection(ProjectDependencies) = postProject
{4cefbc84-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
{4cefbc86-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
EndProjectSection
EndProject
Project("{4cefbc7c-c215-11db-8314-0800200c9a66}") = "example_cpp_encode_file", "examples\cpp\encode\file\example_cpp_encode_file.vcproj", "{4cefbe01-c215-11db-8314-0800200c9a66}"
ProjectSection(ProjectDependencies) = postProject
{4cefbc84-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
{4cefbc86-c215-11db-8314-0800200c9a66} = {4cefbc84-c215-11db-8314-0800200c9a66}
...
...
@@ -220,21 +231,33 @@ Global
{4cefbc92-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbc92-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbc93-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbc93-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbc93-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbc93-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbc94-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbc93-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbc94-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbc94-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbc94-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbc94-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbc95-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbc95-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbc95-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbc95-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefb
d00
-c215-11db-8314-0800200c9a66}.
Debug|Win32.ActiveCfg = Debug
|Win32
{4cefb
c95
-c215-11db-8314-0800200c9a66}.
Release|Win32.Build.0 = Release
|Win32
{4cefbd00-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbd00-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbd00-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbd00-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbd01-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbd01-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbd01-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbd01-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbe00-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbe00-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbe00-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbe00-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
{4cefbe01-c215-11db-8314-0800200c9a66}.Debug|Win32.ActiveCfg = Debug|Win32
{4cefbe01-c215-11db-8314-0800200c9a66}.Debug|Win32.Build.0 = Debug|Win32
{4cefbe01-c215-11db-8314-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32
{4cefbe01-c215-11db-8314-0800200c9a66}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
configure.in
View file @
703d0d4a
...
...
@@ -353,9 +353,13 @@ AC_CONFIG_FILES([ \
examples/c/Makefile \
examples/c/decode/Makefile \
examples/c/decode/file/Makefile \
examples/c/encode/Makefile \
examples/c/encode/file/Makefile \
examples/cpp/Makefile \
examples/cpp/decode/Makefile \
examples/cpp/decode/file/Makefile \
examples/cpp/encode/Makefile \
examples/cpp/encode/file/Makefile \
include/Makefile \
include/FLAC/Makefile \
include/FLAC++/Makefile \
...
...
examples/Makefile.lite
View file @
703d0d4a
...
...
@@ -15,8 +15,8 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
.PHONY
:
all example_c_decode_file example_c
pp_de
code_file
all
:
example_c_decode_file example_c
pp_de
code_file
.PHONY
:
all example_c_decode_file example_c
_encode_file example_cpp_decode_file example_cpp_en
code_file
all
:
example_c_decode_file example_c
_encode_file example_cpp_decode_file example_cpp_en
code_file
DEFAULT_CONFIG
=
release
...
...
@@ -33,9 +33,17 @@ release : all
example_c_decode_file
:
(
cd
c/decode/file
&&
$(MAKE)
-f
Makefile.lite
$(CONFIG)
)
example_c_encode_file
:
(
cd
c/encode/file
&&
$(MAKE)
-f
Makefile.lite
$(CONFIG)
)
example_cpp_decode_file
:
(
cd
cpp/decode/file
&&
$(MAKE)
-f
Makefile.lite
$(CONFIG)
)
example_cpp_encode_file
:
(
cd
cpp/encode/file
&&
$(MAKE)
-f
Makefile.lite
$(CONFIG)
)
clean
:
-
(
cd
c/decode/file
&&
$(MAKE)
-f
Makefile.lite clean
)
-
(
cd
c/encode/file
&&
$(MAKE)
-f
Makefile.lite clean
)
-
(
cd
cpp/decode/file
&&
$(MAKE)
-f
Makefile.lite clean
)
-
(
cd
cpp/encode/file
&&
$(MAKE)
-f
Makefile.lite clean
)
examples/README
View file @
703d0d4a
...
...
@@ -7,3 +7,6 @@ The "cpp" directory has analogous programs that are all in C++ and use libFLAC++
The programs are:
c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC
c/encode/file/ - example_c_encode_file - Simple FLAC file encoder using libFLAC
cpp/decode/file/ - example_cpp_decode_file - Simple FLAC file decoder using libFLAC++
cpp/encode/file/ - example_cpp_encode_file - Simple FLAC file encoder using libFLAC++
examples/c/Makefile.am
View file @
703d0d4a
...
...
@@ -15,4 +15,4 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
SUBDIRS
=
decode
SUBDIRS
=
decode
encode
examples/cpp/Makefile.am
View file @
703d0d4a
...
...
@@ -15,4 +15,4 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
SUBDIRS
=
decode
SUBDIRS
=
decode
encode
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment