Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:07
protectorChristian Graus8-Dec-03 16:07 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:40
protectorChristian Graus8-Dec-03 16:40 
GeneralRe: convert to c# Pin
Rob Tomson8-Dec-03 17:58
Rob Tomson8-Dec-03 17:58 
GeneralRe: convert to c# Pin
Heath Stewart8-Dec-03 18:10
protectorHeath Stewart8-Dec-03 18:10 
GeneralList View Scroll Pin
compubaby8-Dec-03 12:25
compubaby8-Dec-03 12:25 
GeneralRe: List View Scroll Pin
Heath Stewart8-Dec-03 18:05
protectorHeath Stewart8-Dec-03 18:05 
Generalsome general questions about sounds Pin
blakeb_18-Dec-03 8:52
blakeb_18-Dec-03 8:52 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 9:54
protectorHeath Stewart8-Dec-03 9:54 
Any of those libraries deal with WAV files, and your WAV files will pretty much be the same size depending on recording quality. As we discussed before, if you want to decrease the size you'll need to encode them as MP3s, OGGs, WMAs, or whatever.

As far as storing them in the database, it's just my opinion that this would add a lot of complexity because you have to (in most cases) get a "pointer" to the data and use a stream to save the file (perhaps just to memory) so that it could be played. Perhaps there's an easier way, but simplying playing a persistent file would be easier. In either case, the file will take up about the same amount of room. The database (at least Access) won't compress the contents, so it would be the same size in the database that it would be on disk. The only difficulty with the disk approach is that your database probably shouldn't store absolute paths (to work in any case and in any location) so your program should resolve the path to the same file. For instance, lets say you store the path relative to the application's installation directory. You could then do a simple Path.Combine:
string relpath = path_from_database;
string path = Path.Combine(Application.StartupPath, relpath);
PlaySound(path); // Made-up function name, of course


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 9:57
blakeb_18-Dec-03 9:57 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 10:02
protectorHeath Stewart8-Dec-03 10:02 
GeneralRe: some general questions about sounds Pin
leppie8-Dec-03 10:33
leppie8-Dec-03 10:33 
GeneralRe: some general questions about sounds Pin
leppie8-Dec-03 10:38
leppie8-Dec-03 10:38 
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 10:55
blakeb_18-Dec-03 10:55 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 11:43
protectorHeath Stewart8-Dec-03 11:43 
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 11:49
blakeb_18-Dec-03 11:49 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 11:56
protectorHeath Stewart8-Dec-03 11:56 
Generaldetecting internet connection Pin
godzooky8-Dec-03 8:45
godzooky8-Dec-03 8:45 
GeneralRe: detecting internet connection Pin
Heath Stewart8-Dec-03 9:46
protectorHeath Stewart8-Dec-03 9:46 
GeneralDataRepeater Control Pin
RB@Emphasys8-Dec-03 8:08
RB@Emphasys8-Dec-03 8:08 
GeneralRe: DataRepeater Control Pin
Heath Stewart8-Dec-03 9:34
protectorHeath Stewart8-Dec-03 9:34 
GeneralHelp with simple user control Pin
Charlie Williams8-Dec-03 8:05
Charlie Williams8-Dec-03 8:05 
GeneralRe: Help with simple user control Pin
Heath Stewart8-Dec-03 9:25
protectorHeath Stewart8-Dec-03 9:25 
GeneralRe: Help with simple user control Pin
Charlie Williams8-Dec-03 11:56
Charlie Williams8-Dec-03 11:56 
QuestionDynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Paul Evans8-Dec-03 6:46
Paul Evans8-Dec-03 6:46 
AnswerRe: Dynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Heath Stewart8-Dec-03 7:01
protectorHeath Stewart8-Dec-03 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.